Skin:Vector/Hooks/SkinVectorStyleModules

From mediawiki.org
Hooks
Available from version 1.22.0 (Gerrit change 79948)
Called before Vector style modules are added to the page
Define function:
public static function onHooks( $skinVector, &$styles ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"Hooks": "MediaWiki\\Extension\\MyExtension\\Hooks::onHooks"
	}
}
Called from: File(s): SkinVector.php
Interface: HooksHook.php

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


Details[edit]

  • $skinVector - SkinVector object
  • &$styles - array of Vector style modules