MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onApiQueryTokensRegisterTypes (&$salts) | |
Use this hook to add additional token types to action=query&meta=tokens. | |
Stable to implement.
Definition at line 9 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.