Open main menu


Available from version master (Gerrit change 260948)
Allow other extensions to add or override tools.
Define function:
public static function onMobileMenu( $name, \MobileFrontend\MenuBuilder &$menu ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"MobileMenu": "MyExtensionHooks::onMobileMenu"

For MediaWiki ≤1.25:

$wgHooks['MobileMenu'][] = 'MyExtensionHooks::onMobileMenu';
Called from:File(s): MobileFrontend extension/SkinMinerva.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MobileMenu extensions.


  • $name: The tool name (including sitelinks, personal and discovery)
  • &$menu: Menu.