function TokenEntityMapperInterface::getEntityTypeForTokenType in Token 8
Return the entity type of a particular token type.
Parameters
string $token_type: The token type for which the mapping is returned.
bool $fallback: (optional) Defaults to FALSE. If true, the same $value is returned in case the mapping was not found.
Return value
string The entity type of the token type specified.
See also
token_entity_info_alter()
1 method overrides TokenEntityMapperInterface::getEntityTypeForTokenType()
- TokenEntityMapper::getEntityTypeForTokenType in src/
TokenEntityMapper.php - Return the entity type of a particular token type.
File
- src/
TokenEntityMapperInterface.php, line 30
Class
Namespace
Drupal\tokenCode
function getEntityTypeForTokenType($token_type, $fallback = FALSE);