Extension:MobileFrontend/Hooks/GetMobileUrl

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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

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