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 Domain condition plugin.

Parameters

\Drupal\domain\DomainNegotiator $domain_negotiator: The domain negotiator service.

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.

Overrides ConditionPluginBase::__construct

File

domain/src/Plugin/Condition/Domain.php, line 43

Class

Domain
Provides a 'Domain' condition.

Namespace

Drupal\domain\Plugin\Condition

Code

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