Manual:Hooks/SkinTemplateNavigation::Universal

From MediaWiki.org
Jump to: navigation, search
SkinTemplateNavigation::Universal
Available from version 1.18.0 (r79358)
Called on both content and special pages after variants have been added
Define function:
public static function onSkinTemplateNavigation_Universal( &$sktemplate, &$links ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SkinTemplateNavigation::Universal": [
			"MyExtensionHooks::onSkinTemplateNavigationUniversal"
		]
	}
}

For MediaWiki ≤1.25:

$wgHooks['SkinTemplateNavigation::Universal'][] = 'MyExtensionHooks::onSkinTemplateNavigationUniversal';
Called from: File(s): SkinTemplate.php

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

Details[edit]

  • &$sktemplate: SkinTemplate object
  • &$links: Structured array of navigation links

See also[edit]