function EntityAccessControlHandler::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::__construct()
  2. 10 core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php \Drupal\Core\Entity\EntityAccessControlHandler::__construct()
  3. 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.

6 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.
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.

... See full list

6 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.
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.

... See full list

File

core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php, line 53

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.