public function Domain::__construct in Domain Access 8
Same name in this branch
- 8 domain/src/Plugin/Condition/Domain.php \Drupal\domain\Plugin\Condition\Domain::__construct()
- 8 domain/src/Plugin/views/argument_default/Domain.php \Drupal\domain\Plugin\views\argument_default\Domain::__construct()
- 8 domain/src/Plugin/views/access/Domain.php \Drupal\domain\Plugin\views\access\Domain::__construct()
Constructs a Domain 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\DomainNegotiator $domain_negotiator: The domain negotiator.
Overrides PluginBase::__construct
File
- domain/
src/ Plugin/ views/ argument_default/ Domain.php, line 40
Class
- Domain
- Default argument plugin to extract active domain ID.
Namespace
Drupal\domain\Plugin\views\argument_defaultCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DomainNegotiator $domain_negotiator) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->domainNegotiator = $domain_negotiator;
}