Manual:Hooks/ApiQuery::moduleManager

From MediaWiki.org
Jump to: navigation, search
ApiQuery::moduleManager
Available from version 1.25.0
Called when ApiQuery has finished initializing its module manager
Define function:
public static function onApiQuery_moduleManager( ApiModuleManager moduleManager ) { ... }
Attach hook:
$wgHooks['ApiQuery::moduleManager'][] = 'MyExtensionHooks::onApiQuery_moduleManager';
Called from: File(s): includes/api/ApiQuery.php

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

Can be used to conditionally register API query modules.

Details[edit]

  • $moduleManager: ApiModuleManager Module manager instance