function EntityDisplayFormBase::getEntityDisplay
Same name in other branches
- 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getEntityDisplay()
- 8.9.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getEntityDisplay()
- 11.x 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 761
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
protected abstract function getEntityDisplay($entity_type_id, $bundle, $mode);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.