Merge "mediawiki.api: Remove console warning for legacy token type"
[mediawiki.git] / includes / skins / Hook / SkinBuildSidebarHook.php
blob5ccb6205e552aff46217aa4adc90be61f3093962
1 <?php
3 namespace MediaWiki\Hook;
5 use Skin;
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "SkinBuildSidebar" to register handlers implementing this interface.
11 * @stable to implement
12 * @ingroup Hooks
14 interface SkinBuildSidebarHook {
15 /**
16 * This hook is called at the end of Skin::buildSidebar().
18 * @since 1.35
20 * @param Skin $skin
21 * @param array &$bar Sidebar contents. Modify $bar to add or modify sidebar portlets.
22 * @return bool|void True or no return value to continue or false to abort
24 public function onSkinBuildSidebar( $skin, &$bar );