Manual:Hooks/MinervaDiscoveryTools

MinervaDiscoveryTools
Available from version 1.25.0 (Gerrit change 191219)
Executes when navigation menu discovery tools have been created.
Define function:
public static function onMinervaDiscoveryTools( &$items ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"MinervaDiscoveryTools": "MyExtensionHooks::onMinervaDiscoveryTools"
	}
}

For MediaWiki ≤1.25:

$wgHooks['MinervaDiscoveryTools'][] = 'MyExtensionHooks::onMinervaDiscoveryTools';
Called from:File(s): SkinMinerva.php

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

DetailsEdit

  • $items: Array of menu items.