You are here

public function UnitTypeAddAccessCheck::__construct in Booking and Availability Management Tools for Drupal 8

Constructs a EntityCreateAccessCheck object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

File

modules/bat_unit/src/Access/UnitTypeAddAccessCheck.php, line 34
Contains \Drupal\bat_unit\Access\UnitTypeAddAccessCheck.

Class

UnitTypeAddAccessCheck
Determines access to for unit type add pages.

Namespace

Drupal\bat_unit\Access

Code

public function __construct(EntityTypeManagerInterface $entity_manager) {
  $this->entityTypeManager = $entity_manager;
}