Manual:Hooks/ParserFirstCallInit/pl

This page is a translated version of the page Manual:Hooks/ParserFirstCallInit and the translation is 17% complete.
ParserFirstCallInit
Dostępne od wersji version 1.12.0
called when the parser initializes for the first time
Zdefiniuj funkcję:
public static function onParserFirstCallInit( Parser $parser ) { ... }
Dołącz hak: W extension.json:
{
	"Hooks": {
		"ParserFirstCallInit": "MyExtensionHooks::onParserFirstCallInit"
	}
}
Called from: Plik(i): parser/Parser.php
Function(s): firstCallInit
Interface: ParserFirstCallInitHook.php

For more information about attaching hooks, see Podręcznik:Haki .
For examples of extensions using this hook, see Category:ParserFirstCallInit extensions/pl.

Szczegóły

  • Parser $parser: Parser object being initialized

Examples

For examples on how this hook should be used, please see Podręcznik:Funkcje parsera oraz Manual:Tag extensions .

Phabricator

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