You are here

public function DomainAccessManager::__construct in Domain Access 8

Constructs a DomainAccessManager object.

Parameters

\Drupal\domain\DomainNegotiatorInterface $negotiator: The domain negotiator.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Drupal module handler.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

domain_access/src/DomainAccessManager.php, line 59

Class

DomainAccessManager
Checks the access status of entities based on domain settings.

Namespace

Drupal\domain_access

Code

public function __construct(DomainNegotiatorInterface $negotiator, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager) {
  $this->negotiator = $negotiator;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->domainStorage = $entity_type_manager
    ->getStorage('domain');
}