You are here

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

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

Constructs a CookieCategoryForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entityTypeManager.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

src/Form/CookieCategoryForm.php, line 32

Class

CookieCategoryForm
Class CookieCategoryForm.

Namespace

Drupal\eu_cookie_compliance\Form

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager) {
  $this->entityTypeManager = $entityTypeManager;
  $this->categoryStorageManager = $entityTypeManager
    ->getStorage('cookie_category');
}