You are here

public function DomainStorage::__construct in Domain Access 8

Constructs a DomainStorage object.

Trying to inject the storage manager throws an exception.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

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

\Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The typed config handler.

Overrides ConfigEntityStorage::__construct

File

domain/src/DomainStorage.php, line 44

Class

DomainStorage
Loads Domain records.

Namespace

Drupal\domain

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, MemoryCacheInterface $memory_cache, TypedConfigManagerInterface $typed_config) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
  $this->typedConfig = $typed_config;
}