function EntityDisplayFormBase::getDisplayModeOptions

Same name in other branches
  1. 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModeOptions()
  2. 8.9.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModeOptions()
  3. 10 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModeOptions()

Returns an array of form or view mode options.

Return value

array An array of form or view mode options.

1 call to EntityDisplayFormBase::getDisplayModeOptions()
EntityDisplayFormBase::form in core/modules/field_ui/src/Form/EntityDisplayFormBase.php
Gets the actual form array to be built.
2 methods override EntityDisplayFormBase::getDisplayModeOptions()
EntityFormDisplayEditForm::getDisplayModeOptions in core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php
Returns an array of form or view mode options.
EntityViewDisplayEditForm::getDisplayModeOptions in core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php
Returns an array of form or view mode options.

File

core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 817

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected abstract function getDisplayModeOptions();

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