mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 14:23:53 +00:00
Merge "Deprecate MobileMenu hook"
This commit is contained in:
commit
6d4558de86
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ) ) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue