MediaWiki  master
MediaWiki\Hook\BaseTemplateToolboxHook Interface Reference
Inheritance diagram for MediaWiki\Hook\BaseTemplateToolboxHook:

Public Member Functions

 onBaseTemplateToolbox ( $sk, &$toolbox)
 This hook is called by BaseTemplate when building the $toolbox array and returning it for the skin to output. More...
 

Detailed Description

Deprecated:
since 1.35

Definition at line 11 of file BaseTemplateToolboxHook.php.

Member Function Documentation

◆ onBaseTemplateToolbox()

MediaWiki\Hook\BaseTemplateToolboxHook::onBaseTemplateToolbox (   $sk,
$toolbox 
)

This hook is called by BaseTemplate when building the $toolbox array and returning it for the skin to output.

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

Since
1.35
Parameters
BaseTemplate$skBase skin template
array&$toolboxArray of toolbox items, see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: