MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\Api\ApiHookRunner.
Public Member Functions | |
onApiQueryCheckCanExecute ( $modules, $authority, &$message) | |
This hook is called during at the beginning of ApiQuery::execute and can be used to prevent execution of query submodules. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiQueryCheckCanExecute" to register handlers implementing this interface.
Definition at line 17 of file ApiQueryCheckCanExecuteHook.php.
MediaWiki\Api\Hook\ApiQueryCheckCanExecuteHook::onApiQueryCheckCanExecute | ( | $modules, | |
$authority, | |||
& | $message ) |
This hook is called during at the beginning of ApiQuery::execute and can be used to prevent execution of query submodules.
ApiQueryBase[] | $modules | |
Authority | $authority | Current user |
MessageSpecifier | string | array | &$message | API message to die with. |
Implemented in MediaWiki\Api\ApiHookRunner.