Merge "Deprecate MobileMenu hook"

This commit is contained in:
jenkins-bot 2022-02-28 22:09:18 +00:00 committed by Gerrit Code Review
commit 6d4558de86
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;
}
}