You are here

abstract protected function EntityDisplayFormBase::getEntityDisplay 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::getEntityDisplay()
  2. 9 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.

2 calls 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.
EntityDisplayFormBase::submitForm in core/modules/field_ui/src/Form/EntityDisplayFormBase.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
1 method overrides EntityDisplayFormBase::getEntityDisplay()
EntityFormDisplayEditForm::getEntityDisplay in core/modules/field_ui/src/Form/EntityFormDisplayEditForm.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);