You are here

public function EntityAliasTypeDeriver::__construct in View Mode Page 3.2.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/Derivative/EntityAliasTypeDeriver.php \Drupal\view_mode_page\Plugin\Derivative\EntityAliasTypeDeriver::__construct()
  2. 4.0.x src/Plugin/Derivative/EntityAliasTypeDeriver.php \Drupal\view_mode_page\Plugin\Derivative\EntityAliasTypeDeriver::__construct()

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/Derivative/EntityAliasTypeDeriver.php, line 56

Class

EntityAliasTypeDeriver
Deriver that exposes content entities as alias type plugins.

Namespace

Drupal\view_mode_page\Plugin\Derivative

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;
}