< Manual:Hooks
ResourceLoaderSiteModulePages | |
---|---|
Available from version 1.35.0 (Gerrit change 547643) Allows to change which wiki pages comprise the 'site' module in given skin. | |
Define function: | public static function onResourceLoaderSiteModulePages( string $skin, array &$pages ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ResourceLoaderSiteModulePages": "MyExtensionHooks::onResourceLoaderSiteModulePages"
}
}
|
Called from: | File(s): resourceloader/ResourceLoaderSiteModule.php Function(s): getPages |
Interface: | ResourceLoaderSiteModulePagesHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:ResourceLoaderSiteModulePages extensions.
Parameters
$skin
: Astring
representing the current skin key&$pages
: A modifiablearray
representing a map of pages to their type
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.