MediaWiki  master
Page\Hook\ArticleParserOptionsHook Interface Reference

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

Inheritance diagram for 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. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 15 of file ArticleParserOptionsHook.php.

Member Function Documentation

◆ onArticleParserOptions()

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: