function EntityDisplayFormBase::getDisplayModes

Same name in other branches
  1. 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModes()
  2. 10 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModes()
  3. 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 825

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected abstract function getDisplayModes();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.