public function MetatagToken::__construct in Metatag 8
Constructs a new MetatagToken object.
Parameters
\Drupal\Core\Utility\Token $token: Token service.
\Drupal\token\TokenEntityMapperInterface $token_entity_mapper: The token entity type mapper service.
File
- src/
MetatagToken.php, line 39
Class
- MetatagToken
- Token handling service. Uses core token service or contributed Token.
Namespace
Drupal\metatagCode
public function __construct(Token $token, TokenEntityMapperInterface $token_entity_mapper) {
$this->token = $token;
$this->tokenEntityMapper = $token_entity_mapper;
}