You are here

public function EntityAccessControlHandler::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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.

4 calls to EntityAccessControlHandler::__construct()
BlockAccessControlHandler::__construct in core/modules/block/src/BlockAccessControlHandler.php
Constructs the block access control handler instance
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.
ShortcutAccessControlHandler::__construct in core/modules/shortcut/src/ShortcutAccessControlHandler.php
Constructs a ShortcutAccessControlHandler object.
4 methods override EntityAccessControlHandler::__construct()
BlockAccessControlHandler::__construct in core/modules/block/src/BlockAccessControlHandler.php
Constructs the block access control handler instance
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.
ShortcutAccessControlHandler::__construct in core/modules/shortcut/src/ShortcutAccessControlHandler.php
Constructs a ShortcutAccessControlHandler object.

File

core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 48
Contains \Drupal\Core\Entity\EntityAccessControlHandler.

Class

EntityAccessControlHandler
Defines a default implementation for entity access control handler.

Namespace

Drupal\Core\Entity

Code

public function __construct(EntityTypeInterface $entity_type) {
  $this->entityTypeId = $entity_type
    ->id();
  $this->entityType = $entity_type;
}