protected function EntityFormDisplayEditForm::getEntityDisplay in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::getEntityDisplay()
- 10 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::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.
Overrides EntityDisplayFormBase::getEntityDisplay
File
- core/
modules/ field_ui/ src/ Form/ EntityFormDisplayEditForm.php, line 57
Class
- EntityFormDisplayEditForm
- Edit form for the EntityFormDisplay entity type.
Namespace
Drupal\field_ui\FormCode
protected function getEntityDisplay($entity_type_id, $bundle, $mode) {
return $this->entityDisplayRepository
->getFormDisplay($entity_type_id, $bundle, $mode);
}