Merge ".mailmap: Correct two contributor names"
[mediawiki.git] / includes / page / Hook / ArticleParserOptionsHook.php
blob674987df3e4e13e17d5d2f4ef34bb9477bb7b13c
1 <?php
3 namespace MediaWiki\Page\Hook;
5 use Article;
6 use MediaWiki\Parser\ParserOptions;
8 /**
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
13 * @ingroup Hooks
15 interface ArticleParserOptionsHook {
16 /**
17 * This hook is called before parsing wikitext for an article, and allows
18 * setting particular parser options based on title, user preferences,
19 * etc.
21 * @since 1.36
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