Manual:Hooks/BaseTemplateToolbox/de-formal

From Linux Web Expert

BaseTemplateToolbox
<translate> Available from <tvar name=1><translate> version <tvar (r77893, codereview)</tvar></translate>
<translate> Removed in <tvar name=1><translate> version <tvar (Gerrit change 708593)</tvar></translate>
Called by BaseTemplate when building the toolbox array and returning it for the skin to output.
<translate> Define function:</translate>
public static function onBaseTemplateToolbox( BaseTemplate $baseTemplate, array &$toolbox ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"BaseTemplateToolbox": "MediaWiki\\Extension\\MyExtension\\Hooks::onBaseTemplateToolbox"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> SkinTemplate.php
<translate> Interface:</translate> BaseTemplateToolboxHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:BaseTemplateToolbox extensions/de-formal</tvar>.</translate>


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.