You are here

function TokenEntityMapperInterface::getTokenTypeForEntityType in Token 8

Return the token type of a particular entity type.

Parameters

string $entity_type: The entity 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 token type of the entity type specified.

See also

token_entity_info_alter()

http://drupal.org/node/737726

1 method overrides TokenEntityMapperInterface::getTokenTypeForEntityType()
TokenEntityMapper::getTokenTypeForEntityType in src/TokenEntityMapper.php
Return the token type of a particular entity type.

File

src/TokenEntityMapperInterface.php, line 47

Class

TokenEntityMapperInterface

Namespace

Drupal\token

Code

function getTokenTypeForEntityType($entity_type, $fallback = FALSE);