MediaWiki  master
MediaWiki\Hook\ParserFetchTemplateHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

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. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ParserFetchTemplate" to register handlers implementing this interface.

Deprecated:
since 1.35

Definition at line 16 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: