You are here

public function ContentTranslationAccessCheck::__construct in Allowed Languages 8

Same name and namespace in other branches
  1. 2.x src/Access/ContentTranslationAccessCheck.php \Drupal\allowed_languages\Access\ContentTranslationAccessCheck::__construct()

AccessCheck constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Drupal entity type manager.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: Drupal language manager.

Overrides AccessCheckBase::__construct

File

src/Access/ContentTranslationAccessCheck.php, line 40

Class

ContentTranslationAccessCheck
Allowed languages content translation access check.

Namespace

Drupal\allowed_languages\Access

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, LanguageManagerInterface $languageManager) {
  parent::__construct($entityTypeManager);
  $this->entityTypeManager = $entityTypeManager;
  $this->languageManager = $languageManager;
}