MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Hooks\GetMobileUrlHook Interface Reference

This is a hook handler interface, see docs/Hooks.md in core. More...

+ Inheritance diagram for MobileFrontend\Hooks\GetMobileUrlHook:

Public Member Functions

 onGetMobileUrl (?string &$subdomainTokenReplacement, MobileContext $context)
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md in core.

Use the hook name "GetMobileUrl" to register handlers implementing this interface.

@stable to implement

Deprecated
since 1.42, use $wgMobileUrlCallback instead

Member Function Documentation

◆ onGetMobileUrl()

MobileFrontend\Hooks\GetMobileUrlHook::onGetMobileUrl ( ?string & $subdomainTokenReplacement,
MobileContext $context )
Parameters
string | null&$subdomainTokenReplacement
MobileContext$context
Returns
bool|void True or no return value to continue or false to abort
Deprecated
since 1.42, use $wgMobileUrlCallback instead

Implemented in MobileFrontend\Hooks\HookRunner.


The documentation for this interface was generated from the following file: