You are here

public function DomainAccessContent::__construct in Domain Access 8

Constructs the access 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 service.

\Drupal\user\UserStorageInterface $user_storage: The user storage service.

\Drupal\domain_access\DomainAccessManagerInterface $manager: The domain access manager service.

Overrides PluginBase::__construct

File

domain_access/src/Plugin/views/access/DomainAccessContent.php, line 82

Class

DomainAccessContent
Access plugin that provides domain-editing access control.

Namespace

Drupal\domain_access\Plugin\views\access

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, DomainStorageInterface $domain_storage, UserStorageInterface $user_storage, DomainAccessManagerInterface $manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->domainStorage = $domain_storage;
  $this->userStorage = $user_storage;
  $this->manager = $manager;
}