You are here

public function MediaExpireAccessControlHandler::__construct in Media Expire 8.2

Constructs a MediaExpireAccessControlHandler object.

Parameters

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

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

Overrides EntityAccessControlHandler::__construct

File

src/MediaExpireAccessControlHandler.php, line 36

Class

MediaExpireAccessControlHandler
Defines the access control handler for the media entity type.

Namespace

Drupal\media_expire

Code

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