function EntityAccessControlHandler::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::__construct()
- 11.x core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::__construct()
Constructs an access control handler instance.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
8 calls to EntityAccessControlHandler::__construct()
- BlockAccessControlHandler::__construct in core/
modules/ block/ src/ BlockAccessControlHandler.php - Constructs the block access control handler instance.
- BlockContentAccessControlHandler::__construct in core/
modules/ block_content/ src/ BlockContentAccessControlHandler.php - BlockContentAccessControlHandler constructor.
- MediaAccessControlHandler::__construct in core/
modules/ media/ src/ MediaAccessControlHandler.php - Constructs a MediaAccessControlHandler object.
- MenuLinkContentAccessControlHandler::__construct in core/
modules/ menu_link_content/ src/ MenuLinkContentAccessControlHandler.php - Creates a new MenuLinkContentAccessControlHandler.
- NodeAccessControlHandler::__construct in core/
modules/ node/ src/ NodeAccessControlHandler.php - Constructs a NodeAccessControlHandler object.
8 methods override EntityAccessControlHandler::__construct()
- BlockAccessControlHandler::__construct in core/
modules/ block/ src/ BlockAccessControlHandler.php - Constructs the block access control handler instance.
- BlockContentAccessControlHandler::__construct in core/
modules/ block_content/ src/ BlockContentAccessControlHandler.php - BlockContentAccessControlHandler constructor.
- MediaAccessControlHandler::__construct in core/
modules/ media/ src/ MediaAccessControlHandler.php - Constructs a MediaAccessControlHandler object.
- MenuLinkContentAccessControlHandler::__construct in core/
modules/ menu_link_content/ src/ MenuLinkContentAccessControlHandler.php - Creates a new MenuLinkContentAccessControlHandler.
- NodeAccessControlHandler::__construct in core/
modules/ node/ src/ NodeAccessControlHandler.php - Constructs a NodeAccessControlHandler object.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityAccessControlHandler.php, line 53
Class
- EntityAccessControlHandler
- Defines a default implementation for entity access control handler.
Namespace
Drupal\Core\EntityCode
public function __construct(EntityTypeInterface $entity_type) {
$this->entityTypeId = $entity_type->id();
$this->entityType = $entity_type;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.