You are here

public function UnitAddAccessCheck::__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/UnitAddAccessCheck.php, line 34
Contains \Drupal\bat_unit\Access\UnitAddAccessCheck.

Class

UnitAddAccessCheck
Determines access to for unit add pages.

Namespace

Drupal\bat_unit\Access

Code

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