function EntityDisplayFormBase::getDisplayModes
Same name in other branches
- 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModes()
- 8.9.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModes()
- 11.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModes()
Returns the form or view modes used by this form.
Return value
array An array of form or view mode info.
1 call to EntityDisplayFormBase::getDisplayModes()
- 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ā¦
2 methods override EntityDisplayFormBase::getDisplayModes()
- EntityFormDisplayEditForm::getDisplayModes in core/
modules/ field_ui/ src/ Form/ EntityFormDisplayEditForm.php - Returns the form or view modes used by this form.
- EntityViewDisplayEditForm::getDisplayModes in core/
modules/ field_ui/ src/ Form/ EntityViewDisplayEditForm.php - Returns the form or view modes used by this form.
File
-
core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php, line 801
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
protected abstract function getDisplayModes();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.