You are here

public function CookiebotForm::__construct in Cookiebot - Cookie consent, Cookie monitoring and Cookie control 8

Constructs a object.

Parameters

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

\Drupal\Core\Entity\EntityTypeManager $entity_manager: The entity type manager.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The alias manager.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tag invalidator service.

Overrides ConfigFormBase::__construct

File

src/Form/CookiebotForm.php, line 52

Class

CookiebotForm
Cookiebot settings form.

Namespace

Drupal\cookiebot\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManager $entity_manager, AliasManagerInterface $alias_manager, CacheTagsInvalidatorInterface $cache_tags_invalidator) {
  parent::__construct($config_factory);
  $this
    ->setConfigFactory($config_factory);
  $this->entityTypeManager = $entity_manager;
  $this->aliasManager = $alias_manager;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
}