|
MediaWiki REL1_35
|

Public Member Functions | |
| onParserFetchTemplate ( $parser, $title, $rev, &$text, &$deps) | |
| This hook is called when the parser fetches a template. | |
Definition at line 13 of file ParserFetchTemplateHook.php.
| MediaWiki\Hook\ParserFetchTemplateHook::onParserFetchTemplate | ( | $parser, | |
| $title, | |||
| $rev, | |||
| & | $text, | ||
| & | $deps | ||
| ) |
This hook is called when the parser fetches a template.
| Parser | bool | $parser | Parser object or false |
| Title | $title | Title object of the template to be fetched |
| Revision | $rev | Revision object of the template |
| string | bool | null | &$text | Transclusion text of the template or false or null |
| array | &$deps | Array of template dependencies with 'title', 'page_id', and 'rev_id' keys |
Implemented in MediaWiki\HookContainer\HookRunner.