3 namespace MediaWiki\Page\Hook
;
6 use MediaWiki\Context\IContextSource
;
7 use MediaWiki\Title\Title
;
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
16 interface ArticleFromTitleHook
{
18 * This hook is called when creating an article object from a title object using
19 * Wiki::articleFromTitle().
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 );