Remove VectorAfterToolbox hook
Bug: T258814 Change-Id: I56c7efec0df021b3af3205ba80ea33b8fa470880
This commit is contained in:
parent
89114e38ac
commit
ea52da4dd0
12
hooks.txt
12
hooks.txt
|
@ -1,12 +0,0 @@
|
|||
Hooks provided by the Vector skin.
|
||||
|
||||
'VectorAfterToolbox': Called after rendering the toolbox portlet (#p-tb).
|
||||
You can use this to inject items (such as ads or a hit counter, for example)
|
||||
from an extension.
|
||||
This is the Vector counterpart to the MonoBookAfterToolbox hook in the MonoBook
|
||||
skin.
|
||||
|
||||
'VectorBeforeFooter': Called before the footer (#footer) is output, but after
|
||||
#mw-navigation has been closed.
|
||||
You can use this to inject items (such as ads or a hit counter, for example)
|
||||
from an extension.
|
|
@ -305,22 +305,13 @@ class VectorTemplate extends BaseTemplate {
|
|||
case 'SEARCH':
|
||||
break;
|
||||
case 'TOOLBOX':
|
||||
$portal = $this->getMenuData(
|
||||
'tb', $content, self::MENU_TYPE_PORTAL
|
||||
$props[] = $this->getMenuData(
|
||||
'tb', $content, self::MENU_TYPE_PORTAL
|
||||
);
|
||||
// Run deprecated hook.
|
||||
// Use SidebarBeforeOutput instead.
|
||||
ob_start();
|
||||
Hooks::run( 'VectorAfterToolbox', [], '1.35' );
|
||||
$props[] = $portal + [
|
||||
'html-hook-vector-after-toolbox' => ob_get_clean(),
|
||||
];
|
||||
break;
|
||||
case 'LANGUAGES':
|
||||
$portal = $this->getMenuData(
|
||||
'lang',
|
||||
$content,
|
||||
self::MENU_TYPE_PORTAL
|
||||
'lang', $content, self::MENU_TYPE_PORTAL
|
||||
);
|
||||
// The language portal will be added provided either
|
||||
// languages exist or there is a value in html-after-portal
|
||||
|
|
|
@ -20,5 +20,3 @@
|
|||
{{{html-after-portal}}}
|
||||
</div>
|
||||
</nav>
|
||||
{{! Note: html-hook-vector-after-toolbox is deprecated. }}
|
||||
{{{html-hook-vector-after-toolbox}}}
|
||||
|
|
|
@ -59,7 +59,5 @@
|
|||
* @property {string} list-classes of the unordered list element inside the menu
|
||||
* @property {string} [html-user-language-attributes]
|
||||
* @property {boolean} [is-dropdown]
|
||||
* @property {string} [html-hook-vector-after-toolbox] Deprecated and used
|
||||
* by the toolbox portal menu.
|
||||
* @property {string} [html-after-portal] Additional HTML specific to portal menus.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue