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;
}
doc_Drupal
2016-10-29 08:52:57
Comments
Leave a Comment

Please login to continue.