public function DomainAccessViewsAccess::__construct in Domain Access 8
Constructs a DomainToken object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\domain_access\DomainAccessManagerInterface $manager: The domain access manager.
File
- domain_access/
src/ Access/ DomainAccessViewsAccess.php, line 62
Class
- DomainAccessViewsAccess
- Class DomainAccessViewsAccess.
Namespace
Drupal\domain_access\AccessCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, DomainAccessManagerInterface $manager) {
$this->entityTypeManager = $entity_type_manager;
$this->domainStorage = $this->entityTypeManager
->getStorage('domain');
$this->userStorage = $this->entityTypeManager
->getStorage('user');
$this->manager = $manager;
}