Manual:Hooks/MinervaDiscoveryTools

From MediaWiki.org
Jump to navigation Jump to search
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"
	}
}
Called from:File(s): SkinMinerva.php
Interface:MinervaDiscoveryToolsHook.php

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

Details[edit]

  • $items: Array of menu items.