function ConfigEntityStorage::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::__construct()
  2. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::__construct()
  3. 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::__construct()

Constructs a ConfigEntityStorage object.

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 backend.

Overrides EntityStorageBase::__construct

4 calls to ConfigEntityStorage::__construct()
BaseFieldOverrideStorage::__construct in core/lib/Drupal/Core/Field/BaseFieldOverrideStorage.php
Constructs a BaseFieldOverrideStorage object.
FieldConfigStorage::__construct in core/modules/field/src/FieldConfigStorage.php
Constructs a FieldConfigStorage object.
FieldStorageConfigStorage::__construct in core/modules/field/src/FieldStorageConfigStorage.php
Constructs a FieldStorageConfigStorage object.
ShortcutSetStorage::__construct in core/modules/shortcut/src/ShortcutSetStorage.php
Constructs a ShortcutSetStorageController object.
4 methods override ConfigEntityStorage::__construct()
BaseFieldOverrideStorage::__construct in core/lib/Drupal/Core/Field/BaseFieldOverrideStorage.php
Constructs a BaseFieldOverrideStorage object.
FieldConfigStorage::__construct in core/modules/field/src/FieldConfigStorage.php
Constructs a FieldConfigStorage object.
FieldStorageConfigStorage::__construct in core/modules/field/src/FieldStorageConfigStorage.php
Constructs a FieldStorageConfigStorage object.
ShortcutSetStorage::__construct in core/modules/shortcut/src/ShortcutSetStorage.php
Constructs a ShortcutSetStorageController object.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 100

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.