Merge ".mailmap: Correct two contributor names"
[mediawiki.git] / includes / page / Hook / ArticlePageDataBeforeHook.php
blobb0829d95550f720a5c4b2d422ded3c80d54cb65e
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use WikiPage;
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "ArticlePageDataBefore" to register handlers implementing this interface.
11 * @stable to implement
12 * @ingroup Hooks
14 interface ArticlePageDataBeforeHook {
15 /**
16 * This hook is called before loading data of an article from the database.
18 * @since 1.35
20 * @param WikiPage $wikiPage WikiPage whose data will be loaded
21 * @param array &$fields Fields to load from the database
22 * @param array &$tables Tables to load from the database
23 * @param array &$joinConds Join conditions to load from the database
24 * @return bool|void True or no return value to continue or false to abort
26 public function onArticlePageDataBefore( $wikiPage, &$fields, &$tables,
27 &$joinConds