mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-11 16:38:20 +00:00
Deprecate MobileMenu hook
Bug: T291568 Depends-On: I2c75e210ac914ee4d63969314c82451fc8172da0 Change-Id: I00c3e0d4178447c547f25be580c5b99ee65bef60
This commit is contained in:
parent
3e47043f7e
commit
dc422a3def
|
@ -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