You are here

public function TokenInterface::getTokenInfo in Token 8

Returns metadata describing supported a token.

Parameters

$token_type: The token type for which the metadata is required.

$token: The token name for which the metadata is required.

Return value

array[] An array of information from hook_token_info() for the specified token.

See also

hook_token_info()

hook_token_info_alter()

1 method overrides TokenInterface::getTokenInfo()
Token::getTokenInfo in src/Token.php
Returns metadata describing supported a token.

File

src/TokenInterface.php, line 36

Class

TokenInterface

Namespace

Drupal\token

Code

public function getTokenInfo($token_type, $token);