function MediaAccessControlHandler::__construct
Same name in other branches
- 9 core/modules/media/src/MediaAccessControlHandler.php \Drupal\media\MediaAccessControlHandler::__construct()
- 11.x core/modules/media/src/MediaAccessControlHandler.php \Drupal\media\MediaAccessControlHandler::__construct()
Constructs a MediaAccessControlHandler object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Overrides EntityAccessControlHandler::__construct
File
-
core/
modules/ media/ src/ MediaAccessControlHandler.php, line 34
Class
- MediaAccessControlHandler
- Defines an access control handler for media items.
Namespace
Drupal\mediaCode
public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($entity_type);
$this->entityTypeManager = $entity_type_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.