FieldStorageConfigStorage::__construct

public FieldStorageConfigStorage::__construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, StateInterface $state, FieldTypePluginManagerInterface $field_type_manager)

Constructs a FieldStorageConfigStorage 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\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\Component\Plugin\PluginManagerInterface\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager.

Overrides ConfigEntityStorage::__construct

File

core/modules/field/src/FieldStorageConfigStorage.php, line 70

Class

FieldStorageConfigStorage
Controller class for "field storage" configuration entities.

Namespace

Drupal\field

Code

public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, StateInterface $state, FieldTypePluginManagerInterface $field_type_manager) {
  parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
  $this->entityManager = $entity_manager;
  $this->moduleHandler = $module_handler;
  $this->state = $state;
  $this->fieldTypeManager = $field_type_manager;
}
doc_Drupal
2016-10-29 09:12:39
Comments
Leave a Comment

Please login to continue.