You are here

public function CookiesConfigService::__construct in COOKiES Consent Management 1.0.x

Constructs a new CookiesConfigService object.

File

src/Services/CookiesConfigService.php, line 90

Class

CookiesConfigService
Services to handle module config and method for a rendered documentation.

Namespace

Drupal\cookies\Services

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, ConfigurableLanguageManagerInterface $language_manager, LibraryDiscoveryInterface $library_discovery, LoggerChannelInterface $logger, AccountProxyInterface $current_user) {
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
  $this->libraryDiscovery = $library_discovery;
  $this->configFactory = $config_factory;
  $this->cookiesConfig = $this->configFactory
    ->get('cookies.config');
  $this->logger = $logger;
  $this->currentUser = $current_user;
}