Extension:MobileFrontend/MobileSiteOutputPageBeforeExec
MobileSiteOutputPageBeforeExec | |
---|---|
Available from version master (Gerrit change 243226) Enable extensions to add links to footer in mobile view. | |
Define function: | public static function onMobileSiteOutputPageBeforeExec( Skin &$sk, &$tpl ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"MobileSiteOutputPageBeforeExec": "MediaWiki\\Extension\\MyExtension\\Hooks::onMobileSiteOutputPageBeforeExec"
}
}
|
Called from: | File(s): MobileFrontend extension/MobileFrontend.skin.hooks.php |
Interface: | MobileSiteOutputPageBeforeExecHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:MobileSiteOutputPageBeforeExec extensions.
Details edit
&$sk
: Skin object that will be used to generate the page.&$tpl
: Template reference.