Open main menu

Extension:MobileFrontend/MobileFrontendBeforeDOM

MobileFrontendBeforeDOM
Available from version master (Gerrit change 73207)
Use page content before it is formatted by MobileFrontend.
Define function:
public static function onMobileFrontendBeforeDOM( MobileContext $context, MobileFormatter $formatter ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"MobileFrontendBeforeDOM": "MyExtensionHooks::onMobileFrontendBeforeDOM"
	}
}

For MediaWiki ≤1.25:

$wgHooks['MobileFrontendBeforeDOM'][] = 'MyExtensionHooks::onMobileFrontendBeforeDOM';
Called from:File(s): MobileFrontend extension/MobileFrontend.body.php

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

DetailsEdit

This hook is called before the content parsed by MobileFormatter.

UsageEdit