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": "MediaWiki\\Extension\\MyExtension\\Hooks::onResourceLoaderSiteStylesModulePages"
}
}
|
Called from: | File(s): ResourceLoader/SiteStylesModule.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.
Parameters
edit$skin
: Astring
representing the current skin key&$pages
: A modifiablearray
representing a map of pages to their type