Deprecate MobileMenu hook

Bug: T291568
Depends-On: I2c75e210ac914ee4d63969314c82451fc8172da0
Change-Id: I00c3e0d4178447c547f25be580c5b99ee65bef60
This commit is contained in:
Jon Robson 2022-01-18 16:08:39 -08:00 committed by Jdlrobson
parent 3e47043f7e
commit dc422a3def
7 changed files with 8 additions and 8 deletions

View file

@ -106,7 +106,7 @@ final class AdvancedMainMenuBuilder implements IMainMenuBuilder {
$this->definitions->insertCommunityPortal( $group );
// Allow other extensions to add or override tools
Hooks::run( 'MobileMenu', [ 'sitetools', &$group ] );
Hooks::run( 'MobileMenu', [ 'sitetools', &$group ], '1.38' );
return $group;
}
}

View file

@ -117,7 +117,7 @@ final class BuilderUtil {
$definitions->insertNearbyIfSupported( $group );
// Allow other extensions to add or override tools
Hooks::run( 'MobileMenu', [ 'discovery', &$group ] );
Hooks::run( 'MobileMenu', [ 'discovery', &$group ], '1.38' );
return $group;
}
@ -154,7 +154,7 @@ final class BuilderUtil {
$definitions->insertAboutItem( $group );
$definitions->insertDisclaimersItem( $group );
// Allow other extensions to add or override tools
Hooks::run( 'MobileMenu', [ 'sitelinks', &$group ] );
Hooks::run( 'MobileMenu', [ 'sitelinks', &$group ], '1.38' );
return $group;
}
}

View file

@ -150,7 +150,7 @@ final class DefaultMainMenuBuilder implements IMainMenuBuilder {
}
// Allow other extensions to add or override tools
Hooks::run( 'MobileMenu', [ 'personal', &$group ] );
Hooks::run( 'MobileMenu', [ 'personal', &$group ], '1.38' );
return $group;
}
}

View file

@ -81,7 +81,7 @@ class DefaultOverflowBuilder implements IOverflowBuilder {
$group->insertEntry( $menuEntry );
}
Hooks::run( 'MobileMenu', [ 'pageactions.overflow', &$group ] );
Hooks::run( 'MobileMenu', [ 'pageactions.overflow', &$group ], '1.38' );
return $group;
}

View file

@ -167,7 +167,7 @@ class ToolbarBuilder {
$group->insertEntry( $this->createContributionsPageAction( $user ) );
}
Hooks::run( 'MobileMenu', [ 'pageactions.toolbar', &$group ] );
Hooks::run( 'MobileMenu', [ 'pageactions.toolbar', &$group ], '1.38' );
// We want the edit icon/action always to be the last element on the toolbar list
if ( $permissions->isAllowed( IMinervaPagePermissions::CONTENT_EDIT ) ) {

View file

@ -111,7 +111,7 @@ class UserNamespaceOverflowBuilder implements IOverflowBuilder {
foreach ( $possibleEntries as $menuEntry ) {
$group->insertEntry( $menuEntry );
}
Hooks::run( 'MobileMenu', [ 'pageactions.overflow', &$group ] );
Hooks::run( 'MobileMenu', [ 'pageactions.overflow', &$group ], '1.38' );
return $group;
}

View file

@ -104,7 +104,7 @@ final class AdvancedUserMenuBuilder implements IUserMenuBuilder {
$group->insertEntry( $entry );
}
}
Hooks::run( 'MobileMenu', [ 'user', &$group ] );
Hooks::run( 'MobileMenu', [ 'user', &$group ], '1.38' );
return $group;
}
}