MediaWiki  master
MediaWiki\Api\Hook\ApiTokensGetTokenTypesHook Interface Reference
Inheritance diagram for MediaWiki\Api\Hook\ApiTokensGetTokenTypesHook:

Public Member Functions

 onApiTokensGetTokenTypes (&$tokenTypes)
 Use this hook to extend action=tokens with new token types. More...
 

Detailed Description

Deprecated:
since 1.24 Use ApiQueryTokensRegisterTypes instead.

Definition at line 9 of file ApiTokensGetTokenTypesHook.php.

Member Function Documentation

◆ onApiTokensGetTokenTypes()

MediaWiki\Api\Hook\ApiTokensGetTokenTypesHook::onApiTokensGetTokenTypes ( $tokenTypes)

Use this hook to extend action=tokens with new token types.

Since
1.35
Parameters
array&$tokenTypesSupported token types in format 'type' => callback function used to retrieve this type of token
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Api\ApiHookRunner.


The documentation for this interface was generated from the following file: