Extension:MobileFrontend/MinervaPreRender

From MediaWiki.org
Jump to navigation Jump to search
MinervaPreRender
Available from version master (Gerrit change 64350)
Called before the entire page is rendered to change the content or something else.
Define function:
public static function onMinervaPreRender( MinervaTemplate $template ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"MinervaPreRender": "MyExtensionHooks::onMinervaPreRender"
	}
}

For MediaWiki ≤1.25:

$wgHooks['MinervaPreRender'][] = 'MyExtensionHooks::onMinervaPreRender';
Called from:File(s): MobileFrontend extension/MinervaTemplate.php

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

Details[edit]

  • $template: MinervaTemplate