MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\Api\ApiHookRunner.
Public Member Functions | |
onApiQueryTokensRegisterTypes (&$salts) | |
Use this hook to add additional token types to action=query&meta=tokens. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ApiQueryTokensRegisterTypes" to register handlers implementing this interface.
Definition at line 12 of file ApiQueryTokensRegisterTypesHook.php.
MediaWiki\Api\Hook\ApiQueryTokensRegisterTypesHook::onApiQueryTokensRegisterTypes | ( | & | $salts | ) |
Use this hook to add additional token types to action=query&meta=tokens.
Note that most modules will probably be able to use the CSRF token instead of creating their own token types.
array | &$salts | [ type => salt to pass to User::getEditToken(), or array of salt and key to pass to Session::getToken() ] |
Implemented in MediaWiki\Api\ApiHookRunner.