Merge "mediawiki.api: Remove console warning for legacy token type"
[mediawiki.git] / includes / page / Hook / ArticleFromTitleHook.php
blob1b96e17636502e9646a88909298172d158769bf5
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use Article;
6 use MediaWiki\Context\IContextSource;
7 use MediaWiki\Title\Title;
9 /**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "ArticleFromTitle" to register handlers implementing this interface.
13 * @stable to implement
14 * @ingroup Hooks
16 interface ArticleFromTitleHook {
17 /**
18 * This hook is called when creating an article object from a title object using
19 * Wiki::articleFromTitle().
21 * @since 1.35
23 * @param Title $title Title used to create the article object
24 * @param Article &$article Article that will be returned
25 * @param IContextSource $context
26 * @return bool|void True or no return value to continue or false to abort
28 public function onArticleFromTitle( $title, &$article, $context );