You are here

abstract protected function EntityDisplayFormBase::getEntityDisplay 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::getEntityDisplay()
  2. 10 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getEntityDisplay()

Returns an entity display object to be used by this form.

Parameters

string $entity_type_id: The target entity type ID of the entity display.

string $bundle: The target bundle of the entity display.

string $mode: A view or form mode.

Return value

\Drupal\Core\Entity\Display\EntityDisplayInterface An entity display.

1 call to EntityDisplayFormBase::getEntityDisplay()
EntityDisplayFormBase::getEntityFromRouteMatch in core/modules/field_ui/src/Form/EntityDisplayFormBase.php
Determines which entity will be used by this form from a RouteMatch object.
2 methods override EntityDisplayFormBase::getEntityDisplay()
EntityFormDisplayEditForm::getEntityDisplay in core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php
Returns an entity display object to be used by this form.
EntityViewDisplayEditForm::getEntityDisplay in core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
Returns an entity display object to be used by this form.

File

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

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected abstract function getEntityDisplay($entity_type_id, $bundle, $mode);