MediaWiki master
MediaWiki\Api\Hook\ApiQuery__moduleManagerHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\Api\ApiHookRunner.

Public Member Functions

 onApiQuery__moduleManager ( $moduleManager)
 This hook is called when ApiQuery has finished initializing its module manager.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ApiQuery::moduleManager" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file ApiQuery__moduleManagerHook.php.

Member Function Documentation

◆ onApiQuery__moduleManager()

MediaWiki\Api\Hook\ApiQuery__moduleManagerHook::onApiQuery__moduleManager ( $moduleManager)

This hook is called when ApiQuery has finished initializing its module manager.

Use this hook to conditionally register API query modules.

Since
1.35
Parameters
ApiModuleManager$moduleManager
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Api\ApiHookRunner.


The documentation for this interface was generated from the following file: