You are here

public function EntityDisplayFormBase::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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.

2 calls to EntityDisplayFormBase::__construct()
FieldLayoutEntityFormDisplayEditForm::__construct in core/modules/field_layout/src/Form/FieldLayoutEntityFormDisplayEditForm.php
FieldLayoutEntityFormDisplayEditForm constructor.
FieldLayoutEntityViewDisplayEditForm::__construct in core/modules/field_layout/src/Form/FieldLayoutEntityViewDisplayEditForm.php
FieldLayoutEntityViewDisplayEditForm constructor.
2 methods override EntityDisplayFormBase::__construct()
FieldLayoutEntityFormDisplayEditForm::__construct in core/modules/field_layout/src/Form/FieldLayoutEntityFormDisplayEditForm.php
FieldLayoutEntityFormDisplayEditForm constructor.
FieldLayoutEntityViewDisplayEditForm::__construct in core/modules/field_layout/src/Form/FieldLayoutEntityViewDisplayEditForm.php
FieldLayoutEntityViewDisplayEditForm 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;
}