Jump to content

Manual:Hooks/ParserFirstCallInit

From mediawiki.org
ParserFirstCallInit
Available from version 1.12.0
called when the parser initializes for the first time
Define function:
public static function onParserFirstCallInit( Parser $parser ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ParserFirstCallInit": "MediaWiki\\Extension\\MyExtension\\Hooks::onParserFirstCallInit"
	}
}
Called from: File(s): parser/Parser.php
Function(s): __construct
Interface: ParserFirstCallInitHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ParserFirstCallInit extensions.

Details

[edit]
  • Parser $parser: Parser object being initialized

Examples

[edit]

For examples on how this hook should be used, please see:

Phabricator

[edit]
  • phab:T299528 - Deprecate and remove ParserFirstCallInit hook (move hook/tag registration out of Parser constructor)

See also

[edit]
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy