< Manual:Hooks 
 
      | ParserOptionsRegister | |
|---|---|
| Available from version 1.30.0 allows registering additional parser options | |
| Define function: | public static function onParserOptionsRegister( &$defaults, &$inCacheKey, &$lazyLoad ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"ParserOptionsRegister": "MyExtensionHooks::onParserOptionsRegister"
	}
}
 | 
| Called from: | File(s): parser/ParserOptions.php Function(s): getDefaults | 
| Interface: | ParserOptionsRegisterHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ParserOptionsRegister extensions.
Parameters
- &$defaults: Options and their defaults
- &$inCacheKey: Whether each option splits the parser cache
- &$lazyOptions: Initializers for lazy-loaded options
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.