Extension:MobileFrontend/Hooks/GetMobileUrl

GetMobileUrl
Available from version 1.20.0 (Gerrit change 4377)

Define function:
public static function onGetMobileUrl( &$subdomainTokenReplacement, MobileContext $mobileContext ) { ... }
Attach hook:
$wgHooks['GetMobileUrl'][] = 'MyExtensionHooks::onGetMobileUrl';
Called from:File(s): MobileFrontend / includes/MobileContext.php
Function(s): getMobileUrl

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

Parameters

edit
  • &$subdomainTokenReplacement: A modifiable value that defaults to null.
  • $mobileContext: An instance of MobileContext