You are here

public function MediaRevisionPermissions::__construct in Media Revisions UI 8

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

MediaPermissions constructor.

Parameters

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

File

src/MediaRevisionPermissions.php, line 31

Class

MediaRevisionPermissions
Provides dynamic permissions for each media revision type.

Namespace

Drupal\media_revisions_ui

Code

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