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
1 method overrides TokenInterface::getTokenInfo()
- Token::getTokenInfo in src/
Token.php - Returns metadata describing supported a token.
File
- src/
TokenInterface.php, line 36
Class
Namespace
Drupal\tokenCode
public function getTokenInfo($token_type, $token);