MediaWiki REL1_39
MediaWiki\Hook\BeforeParserFetchTemplateAndtitleHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\BeforeParserFetchTemplateAndtitleHook:

Public Member Functions

 onBeforeParserFetchTemplateAndtitle ( $parser, $title, &$skip, &$id)
 This hook is called before a template is fetched by Parser.
 

Detailed Description

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

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

Deprecated
since 1.36; use BeforeParserFetchTemplateRevisionRecordHook

Definition at line 15 of file BeforeParserFetchTemplateAndtitleHook.php.

Member Function Documentation

◆ onBeforeParserFetchTemplateAndtitle()

MediaWiki\Hook\BeforeParserFetchTemplateAndtitleHook::onBeforeParserFetchTemplateAndtitle ( $parser,
$title,
& $skip,
& $id )

This hook is called before a template is fetched by Parser.

Since
1.35
Parameters
Parser$parser
Title$titleTitle of the template
bool&$skipSkip this template and link it?
int&$idID of the revision being parsed
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: