You are here

public function PhotosAccessControlHandler::__construct in Album Photos 8.5

Same name and namespace in other branches
  1. 6.0.x src/PhotosAccessControlHandler.php \Drupal\photos\PhotosAccessControlHandler::__construct()

Constructs the photos access control handler instance.

Parameters

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

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

Overrides EntityAccessControlHandler::__construct

File

src/PhotosAccessControlHandler.php, line 44

Class

PhotosAccessControlHandler
Defines an access control handler for photos_image items.

Namespace

Drupal\photos

Code

public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_manager) {
  parent::__construct($entity_type);
  $this->entityTypeManager = $entity_manager;
}