MediaWiki REL1_35
MediaWiki\Hook\ParserFetchTemplateHook Interface Reference
Inheritance diagram for MediaWiki\Hook\ParserFetchTemplateHook:

Public Member Functions

 onParserFetchTemplate ( $parser, $title, $rev, &$text, &$deps)
 This hook is called when the parser fetches a template.
 

Detailed Description

Deprecated:
since 1.35

Definition at line 13 of file ParserFetchTemplateHook.php.

Member Function Documentation

◆ onParserFetchTemplate()

MediaWiki\Hook\ParserFetchTemplateHook::onParserFetchTemplate (   $parser,
  $title,
  $rev,
$text,
$deps 
)

This hook is called when the parser fetches a template.

Since
1.35
Parameters
Parser | bool$parserParser object or false
Title$titleTitle object of the template to be fetched
Revision$revRevision object of the template
string | bool | null&$textTransclusion text of the template or false or null
array&$depsArray of template dependencies with 'title', 'page_id', and 'rev_id' keys
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: