You are here

public function FieldConfigStorage::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field/src/FieldConfigStorage.php \Drupal\field\FieldConfigStorage::__construct()

Constructs a FieldConfigStorage 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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager.

\Drupal\Core\Field\DeletedFieldsRepositoryInterface $deleted_fields_repository: The deleted fields repository.

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

Overrides ConfigEntityStorage::__construct

File

core/modules/field/src/FieldConfigStorage.php, line 63

Class

FieldConfigStorage
Storage handler for field config.

Namespace

Drupal\field

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, FieldTypePluginManagerInterface $field_type_manager, DeletedFieldsRepositoryInterface $deleted_fields_repository, MemoryCacheInterface $memory_cache) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager, $memory_cache);
  $this->entityTypeManager = $entity_type_manager;
  $this->fieldTypeManager = $field_type_manager;
  $this->deletedFieldsRepository = $deleted_fields_repository;
}