public function DomainAccessControlHandler::__construct in Domain Access 8
Constructs an access control handler instance.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\domain\DomainElementManagerInterface $domain_element_manager: The domain field element manager.
\Drupal\user\UserStorageInterface $user_storage: The user storage manager.
Overrides EntityAccessControlHandler::__construct
File
- domain/
src/ DomainAccessControlHandler.php, line 56
Class
- DomainAccessControlHandler
- Defines the access controller for the domain entity type.
Namespace
Drupal\domainCode
public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, DomainElementManagerInterface $domain_element_manager, UserStorageInterface $user_storage) {
parent::__construct($entity_type);
$this->entityTypeManager = $entity_type_manager;
$this->domainElementManager = $domain_element_manager;
$this->userStorage = $user_storage;
}