You are here

public function EuCookieComplianceConfigForm::__construct in EU Cookie Compliance (GDPR Compliance) 8

Same name and namespace in other branches
  1. 2.0.x src/Form/EuCookieComplianceConfigForm.php \Drupal\eu_cookie_compliance\Form\EuCookieComplianceConfigForm::__construct()

Constructs an EuCookieComplianceConfigForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

\Drupal\Core\Routing\RequestContext $request_context: The request context.

\Drupal\user\RoleStorageInterface $role_storage: The role storage.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides ConfigFormBase::__construct

File

src/Form/EuCookieComplianceConfigForm.php, line 68

Class

EuCookieComplianceConfigForm
Provides settings for eu_cookie_compliance module.

Namespace

Drupal\eu_cookie_compliance\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, PathValidatorInterface $path_validator, RequestContext $request_context, RoleStorageInterface $role_storage, ModuleHandlerInterface $module_handler) {
  parent::__construct($config_factory);
  $this->pathValidator = $path_validator;
  $this->requestContext = $request_context;
  $this->roleStorage = $role_storage;
  $this->moduleHandler = $module_handler;
}