Remove VectorAfterToolbox hook

Bug: T258814
Change-Id: I56c7efec0df021b3af3205ba80ea33b8fa470880
This commit is contained in:
Ammar Abdulhamid 2020-07-25 02:46:02 +01:00
parent 89114e38ac
commit ea52da4dd0
4 changed files with 3 additions and 28 deletions

View File

@ -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.

View File

@ -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

View File

@ -20,5 +20,3 @@
{{{html-after-portal}}}
</div>
</nav>
{{! Note: html-hook-vector-after-toolbox is deprecated. }}
{{{html-hook-vector-after-toolbox}}}

View File

@ -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.
*/