You are here

public function CivicrmEntityAccessHandler::__construct in CiviCRM Entity 8.3

Constructs an access control handler instance.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

Overrides EntityAccessControlHandler::__construct

File

src/CivicrmEntityAccessHandler.php, line 23

Class

CivicrmEntityAccessHandler
Entity access handler for CiviCRM entities.

Namespace

Drupal\civicrm_entity

Code

public function __construct(EntityTypeInterface $entity_type) {
  parent::__construct($entity_type);
  $this->civicrmEntityInfo = SupportedEntities::getInfo();
}