You are here

public function EntityDisplayFormBase::__construct in Drupal 10

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

Constructs a new EntityDisplayFormBase.

Parameters

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

\Drupal\Component\Plugin\PluginManagerBase $plugin_manager: The widget or formatter plugin manager.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface|null $entity_display_repository: (optional) The entity display_repository.

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

1 method overrides EntityDisplayFormBase::__construct()
FieldLayoutEntityFormDisplayEditForm::__construct in core/modules/field_layout/src/Form/FieldLayoutEntityFormDisplayEditForm.php
FieldLayoutEntityFormDisplayEditForm constructor.

File

core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 79

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

public function __construct(FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager, EntityDisplayRepositoryInterface $entity_display_repository, EntityFieldManagerInterface $entity_field_manager) {
  $this->fieldTypes = $field_type_manager
    ->getDefinitions();
  $this->pluginManager = $plugin_manager;
  $this->entityDisplayRepository = $entity_display_repository;
  $this->entityFieldManager = $entity_field_manager;
}