protected function EntityViewDisplayEditForm::getDisplayModes in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php \Drupal\field_ui\Form\EntityViewDisplayEditForm::getDisplayModes()
Returns the form or view modes used by this form.
Return value
array An array of form or view mode info.
Overrides EntityDisplayFormBase::getDisplayModes
File
- core/
modules/ field_ui/ src/ Form/ EntityViewDisplayEditForm.php, line 104
Class
- EntityViewDisplayEditForm
- Edit form for the EntityViewDisplay entity type.
Namespace
Drupal\field_ui\FormCode
protected function getDisplayModes() {
return $this->entityDisplayRepository
->getViewModes($this->entity
->getTargetEntityTypeId());
}