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