Skin:Vector/Hooks/SkinVectorStyleModules

From mediawiki.org
Jump to navigation Jump to search
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": "MyExtensionHooks::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