You are here

public function Domain::__construct in Domain Access 8

Same name in this branch
  1. 8 domain/src/Plugin/Condition/Domain.php \Drupal\domain\Plugin\Condition\Domain::__construct()
  2. 8 domain/src/Plugin/views/argument_default/Domain.php \Drupal\domain\Plugin\views\argument_default\Domain::__construct()
  3. 8 domain/src/Plugin/views/access/Domain.php \Drupal\domain\Plugin\views\access\Domain::__construct()

Constructs a Role object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\domain\DomainStorageInterface $domain_storage: The domain storage loader.

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

Overrides PluginBase::__construct

File

domain/src/Plugin/views/access/Domain.php, line 59

Class

Domain
Access plugin that provides domain-based access control.

Namespace

Drupal\domain\Plugin\views\access

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, DomainStorageInterface $domain_storage, DomainNegotiatorInterface $domain_negotiator) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->domainStorage = $domain_storage;
  $this->domainNegotiator = $domain_negotiator;
}