From mediawiki.org
This page is a translated version of the page Manual:Hooks/ParserFirstCallInit and the translation is 50% complete.
Erhältlich ab Version 1.12.0
called when the parser initializes for the first time
Funktion definieren:
public static function onParserFirstCallInit( Parser $parser ) { ... }
Haken anbringen: In extension.json:
	"Hooks": {
		"ParserFirstCallInit": "MyExtensionHooks::onParserFirstCallInit"
Angerufen von: Datei(en): parser/Parser.php
Funktion(en): firstCallInit
Interface: ParserFirstCallInitHook.php

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


  • Parser $parser: Parser object being initialized


For examples on how this hook should be used, please see Manual:Parser-Funktionen und Handbuch:Tag Erweiterungen .


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