You are here

abstract protected function EntityDisplayFormBase::getDisplayModeOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDisplayModeOptions()
  2. 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 791

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected abstract function getDisplayModeOptions();