You are here

public function EntityAliasTypeDeriver::__construct in Pathauto 8

Constructs new EntityAliasTypeDeriver.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

\Drupal\Token\TokenEntityMapperInterface $token_entity_mapper: The token entity mapper.

File

src/Plugin/Deriver/EntityAliasTypeDeriver.php, line 52

Class

EntityAliasTypeDeriver
Deriver that exposes content entities as alias type plugins.

Namespace

Drupal\pathauto\Plugin\Deriver

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, TranslationInterface $string_translation, TokenEntityMapperInterface $token_entity_mapper) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->stringTranslation = $string_translation;
  $this->tokenEntityMapper = $token_entity_mapper;
}