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"
	}
}
Called from:File(s): MobileFrontend extension/MobileFrontend.body.php
Interface:MobileFrontendBeforeDOMHook.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

Example usage in ZeroBanner[1][2]