You are here

public function BasicConsentStorage::__construct in EU Cookie Compliance (GDPR Compliance) 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/ConsentStorage/BasicConsentStorage.php \Drupal\eu_cookie_compliance\Plugin\ConsentStorage\BasicConsentStorage::__construct()

BasicConsentStorage constructor.

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\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides ConsentStorageBase::__construct

File

src/Plugin/ConsentStorage/BasicConsentStorage.php, line 43

Class

BasicConsentStorage
Provides a database storage for cookie consents.

Namespace

Drupal\eu_cookie_compliance\Plugin\ConsentStorage

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, TimeInterface $time) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $config_factory);
  $this->time = $time;
}