< Manual:Hooks 
 
      | ApiQuery::moduleManager | |
|---|---|
| Available from version 1.25.0 (Gerrit change 190140) Called when ApiQuery has finished initializing its module manager | |
| Define function: | public static function onApiQuery_moduleManager( ApiModuleManager $moduleManager ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"ApiQuery::moduleManager": "MyExtensionHooks::onApiQuerymoduleManager"
	}
}
 | 
| Called from: | File(s): api/ApiQuery.php | 
| Interface: | ApiQuery__moduleManagerHook.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
- $moduleManager: ApiModuleManager instance
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.