MediaWiki REL1_39
MediaWiki\Page\Hook\ArticleParserOptionsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Page\Hook\ArticleParserOptionsHook:

Public Member Functions

 onArticleParserOptions (Article $article, ParserOptions $popts)
 This hook is called before parsing wikitext for an article, and allows setting particular parser options based on title, user preferences, etc.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ArticleParserOptions" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file ArticleParserOptionsHook.php.

Member Function Documentation

◆ onArticleParserOptions()

MediaWiki\Page\Hook\ArticleParserOptionsHook::onArticleParserOptions ( Article $article,
ParserOptions $popts )

This hook is called before parsing wikitext for an article, and allows setting particular parser options based on title, user preferences, etc.

Since
1.36
Parameters
Article$articleArticle about to be parsed
ParserOptions$poptsMutable parser options
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: