MediaWiki  master
ArticleParserOptionsHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Page\Hook;
4 
5 use Article;
6 use ParserOptions;
7 
27  public function onArticleParserOptions(
28  Article $article, ParserOptions $popts
29  );
30 
31 }
ParserOptions
Set options of the Parser.
Definition: ParserOptions.php:45
Page::Hook\ArticleParserOptionsHook\onArticleParserOptions
onArticleParserOptions(Article $article, ParserOptions $popts)
This hook is called before parsing wikitext for an article, and allows setting particular parser opti...
Page::Hook\ArticleParserOptionsHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ArticleParserOptionsHook.php:15
Article
Class for viewing MediaWiki article and history.
Definition: Article.php:49
MediaWiki\Page\Hook
Definition: Article__MissingArticleConditionsHook.php:3