You are here

public function FieldStorageAddForm::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/src/Form/FieldStorageAddForm.php \Drupal\field_ui\Form\FieldStorageAddForm::__construct()
  2. 10 core/modules/field_ui/src/Form/FieldStorageAddForm.php \Drupal\field_ui\Form\FieldStorageAddForm::__construct()

Constructs a new FieldStorageAddForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\Entity\EntityFieldManagerInterface|null $entity_field_manager: (optional) The entity field manager.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: (optional) The entity display repository.

File

core/modules/field_ui/src/Form/FieldStorageAddForm.php, line 87

Class

FieldStorageAddForm
Provides a form for the "field storage" add page.

Namespace

Drupal\field_ui\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, FieldTypePluginManagerInterface $field_type_plugin_manager, ConfigFactoryInterface $config_factory, EntityFieldManagerInterface $entity_field_manager = NULL, EntityDisplayRepositoryInterface $entity_display_repository = NULL) {
  $this->entityTypeManager = $entity_type_manager;
  $this->fieldTypePluginManager = $field_type_plugin_manager;
  $this->configFactory = $config_factory;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityDisplayRepository = $entity_display_repository;
}