You are here

public function EntityAccessCheck::__construct in Allowed Languages 8

AccessCheck constructor.

Parameters

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

\Drupal\allowed_languages\UrlLanguageService $urlLanguageService: Allowed access url language service.

Overrides AccessCheckBase::__construct

File

src/Access/EntityAccessCheck.php, line 40

Class

EntityAccessCheck
Allowed languages entity access check.

Namespace

Drupal\allowed_languages\Access

Code

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