Manual:Hooks/ResourceLoaderSiteStylesModulePages

ResourceLoaderSiteStylesModulePages
Available from version 1.35.0 (Gerrit change 547643)
Allows to change which wiki pages comprise the 'site.styles' module in given skin.
Define function:
public static function onResourceLoaderSiteStylesModulePages( string $skin, array &$pages ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ResourceLoaderSiteStylesModulePages": "MyExtensionHooks::onResourceLoaderSiteStylesModulePages"
	}
}
Called from:File(s): resourceloader/ResourceLoaderSiteStylesModule.php
Function(s): getPages
Interface:ResourceLoaderSiteStylesModulePagesHook.php

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

ParametersEdit

  • $skin: A string representing the current skin key
  • &$pages: A modifiable array representing a map of pages to their type