public function CookiesKnockOutService::__construct in COOKiES Consent Management 1.0.x
KnockOutService constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Drupal EntityTypeManager.
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The Drupal ThemeManager.
File
- src/
CookiesKnockOutService.php, line 88
Class
- CookiesKnockOutService
- Class KnockOutService.
Namespace
Drupal\cookiesCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ThemeManagerInterface $theme_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->theme = $theme_manager
->getActiveTheme()
->getName();
}