Extension:MobileFrontend/EnableMobileModules
Deprecated: This feature is deprecated and should no longer be used, however it is still available for reasons of backwards compatibility . |
EnableMobileModules | |
---|---|
Available from version ??? (Gerrit change 56887) Allow other extensions to add modules depending on the MobileFrontend mode | |
Define function: | public static function onEnableMobileModules( $out, $mode ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EnableMobileModules": "MediaWiki\\Extension\\MyExtension\\Hooks::onEnableMobileModules"
}
}
|
Called from: | File(s): MobileFrontend extension/SkinMobile.php |
Interface: | EnableMobileModulesHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:EnableMobileModules extensions.
Details
edit- $out: OutputPage
- $mode: String, such as 'alpha', 'beta', 'stable'