MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onParserFetchTemplateData (array $titles, array &$tplData) | |
This hook allows Parsoid to fetch additional serialization information about a Template, including the type of its arguments, whether they should be serialized as inline or block style wikitext, etc. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ParserFetchTemplateData" to register handlers implementing this interface.
Definition at line 13 of file ParserFetchTemplateDataHook.php.
MediaWiki\Hook\ParserFetchTemplateDataHook::onParserFetchTemplateData | ( | array | $titles, |
array & | $tplData ) |
This hook allows Parsoid to fetch additional serialization information about a Template, including the type of its arguments, whether they should be serialized as inline or block style wikitext, etc.
See [[Extension:TemplateData]] for more information.
string[] | $titles | An array of template names |
array<string,object> | &$tplData The hook will create an associative array, mapping each given template name to an object representing the TemplateData for that template, or special objects if the title doesn't exist, is missing TemplateData, or has malformed TemplateData. |
Implemented in MediaWiki\HookContainer\HookRunner.