function EntityDisplayFormBase::__construct

Same name in other branches
  1. 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::__construct()
  2. 8.9.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::__construct()
  3. 10 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 83

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.