You are here

public function TranslatorAccessControlHandler::__construct in Translation Management Tool 8

Constructs a TranslatorAccessControlHandler object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\tmgmt\TranslatorManager $translator_manager: The translator manager.

Overrides EntityAccessControlHandler::__construct

File

src/Entity/Controller/TranslatorAccessControlHandler.php, line 37

Class

TranslatorAccessControlHandler
Access control handler for the translator entity.

Namespace

Drupal\tmgmt\Entity\Controller

Code

public function __construct(EntityTypeInterface $entity_type, TranslatorManager $translator_manager) {
  parent::__construct($entity_type);
  $this->translatorManager = $translator_manager;
}