MediaWiki REL1_35
MediaWiki\Hook\SidebarBeforeOutputHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\SidebarBeforeOutputHook:

Public Member Functions

 onSidebarBeforeOutput ( $skin, &$sidebar)
 Use this hook to edit the sidebar just before it is output by skins.
 

Detailed Description

Stable to implement.

Definition at line 11 of file SidebarBeforeOutputHook.php.

Member Function Documentation

◆ onSidebarBeforeOutput()

MediaWiki\Hook\SidebarBeforeOutputHook::onSidebarBeforeOutput (   $skin,
$sidebar 
)

Use this hook to edit the sidebar just before it is output by skins.

Warning: This hook is run on each display. You should consider using 'SkinBuildSidebar', which is aggressively cached.

Since
1.35
Parameters
Skin$skin
array&$sidebarSidebar content. Modify $sidebar to add or modify sidebar portlets.
Returns
void This hook must not abort; it must not return value.

Implemented in MediaWiki\HookContainer\HookRunner.


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