You are here

public function ContainerManager::__construct in GoogleTagManager 8

Constructs a ContainerManager.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

Overrides ContainerManagerInterface::__construct

File

src/Entity/ContainerManager.php, line 67

Class

ContainerManager
Defines the Google tag container manager.

Namespace

Drupal\google_tag\Entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, FileSystemInterface $file_system, CacheBackendInterface $cache, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->config = $config_factory
    ->get('google_tag.settings');
  $this->fileSystem = $file_system;
  $this->cache = $cache;
  $this->messenger = $messenger;
  $this->logger = $logger_factory
    ->get('google_tag');
}