You are here

public function MediaRevisionAccessCheck::__construct in Media Revisions UI 8

Same name and namespace in other branches
  1. 2.0.x src/Access/MediaRevisionAccessCheck.php \Drupal\media_revisions_ui\Access\MediaRevisionAccessCheck::__construct()

Constructs a new MediaRevisionAccessCheck.

Parameters

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

Overrides MediaRevisionAccessCheck::__construct

File

src/Access/MediaRevisionAccessCheck.php, line 31

Class

MediaRevisionAccessCheck
Provides an access checker for media item revisions.

Namespace

Drupal\media_revisions_ui\Access

Code

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