Available from version 1.22.0 (Gerrit change 73207)
Allows extensions to intercept right before MobileFrontend applies transformations to the DOM
Define function:
public static function onMobileFrontendBeforeDOM( MobileContext $context, MobileFormatter $formatter ) { ... }
Attach hook:
$wgHooks['MobileFrontendBeforeDOM'][] = 'MyExtensionHooks::onMobileFrontendBeforeDOM';
Called from:File(s): MobileFrontend / includes/ExtMobileFrontend.php
Function(s): domParse

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

Parameters edit

  • $context: An instance of MobileContext
  • $formatter: An instance of MobileFormatter