MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onApiMakeParserOptions ( $options, $title, $params, $module, &$reset, &$suppressCache) | |
This hook is called from ApiParse and ApiExpandTemplates to allow extensions to adjust the ParserOptions before parsing. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiMakeParserOptions" to register handlers implementing this interface.
Definition at line 17 of file ApiMakeParserOptionsHook.php.
MediaWiki\Api\Hook\ApiMakeParserOptionsHook::onApiMakeParserOptions | ( | $options, | |
$title, | |||
$params, | |||
$module, | |||
& | $reset, | ||
& | $suppressCache | ||
) |
This hook is called from ApiParse and ApiExpandTemplates to allow extensions to adjust the ParserOptions before parsing.
ParserOptions | $options | |
Title | $title | Title to be parsed |
array | $params | Parameter array for the API module |
ApiBase | $module | API module (which is also a ContextSource) |
ScopedCallback | null | &$reset | Set to a ScopedCallback used to reset any hooks after the parse is done |
bool | &$suppressCache | Set true if cache should be suppressed |
Implemented in MediaWiki\Api\ApiHookRunner.