MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onApiCheckCanExecute ( $module, $user, &$message) | |
This hook is called during ApiMain::checkCanExecute. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiCheckCanExecute" to register handlers implementing this interface.
Definition at line 17 of file ApiCheckCanExecuteHook.php.
MediaWiki\Api\Hook\ApiCheckCanExecuteHook::onApiCheckCanExecute | ( | $module, | |
$user, | |||
& | $message | ||
) |
This hook is called during ApiMain::checkCanExecute.
Use this hook to further authenticate and authorize API clients before executing the module.
ApiBase | $module | |
User | $user | Current user |
IApiMessage | Message | string | array | &$message | API message to die with. Specific values accepted depend on the MediaWiki version:
|
Implemented in MediaWiki\Api\ApiHookRunner.