Manual:Hooks/BaseTemplateToolbox/de

From mediawiki.org
This page is a translated version of the page Manual:Hooks/BaseTemplateToolbox and the translation is 17% complete.
BaseTemplateToolbox
Erhältlich ab Version 1.18.0 (r77893, codereview)
Entfernt in Version 1.37.0 (Gerrit change 708593)
Called by BaseTemplate when building the toolbox array and returning it for the skin to output.
Funktion definieren:
public static function onBaseTemplateToolbox( BaseTemplate $baseTemplate, array &$toolbox ) { ... }
Haken anbringen: In extension.json:
{
	"Hooks": {
		"BaseTemplateToolbox": "MediaWiki\\Extension\\MyExtension\\Hooks::onBaseTemplateToolbox"
	}
}
Angerufen von: Datei(en): SkinTemplate.php
Interface: BaseTemplateToolboxHook.php

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


This hook was deprecated in MW 1.35, and removed in MW 1.37. In its place, you can use either of the following hooks:

Details

You can add items to the toolbox while still letting the skin make final decisions on skin-specific markup conventions using this hook.