3 namespace MediaWiki\Page\Hook
;
6 use MediaWiki\Parser\ParserOptions
;
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ArticleParserOptions" to register handlers implementing this interface.
12 * @stable to implement
15 interface ArticleParserOptionsHook
{
17 * This hook is called before parsing wikitext for an article, and allows
18 * setting particular parser options based on title, user preferences,
23 * @param Article $article Article about to be parsed
24 * @param ParserOptions $popts Mutable parser options
25 * @return bool|void True or no return value to continue or false to abort
27 public function onArticleParserOptions(
28 Article
$article, ParserOptions
$popts