W3cubDocs

/Drupal 8

public function ConfigEntityStorage::__construct

public ConfigEntityStorage::__construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager)

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.

Overrides EntityStorageBase::__construct

File

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

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) {
  parent::__construct($entity_type);

  $this->configFactory = $config_factory;
  $this->uuidService = $uuid_service;
  $this->languageManager = $language_manager;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityStorage.php/function/ConfigEntityStorage::__construct/8.1.x