You are here

protected function EntityViewDisplayEditForm::getDisplayModeOptions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php \Drupal\field_ui\Form\EntityViewDisplayEditForm::getDisplayModeOptions()

Returns an array of form or view mode options.

Return value

array An array of form or view mode options.

Overrides EntityDisplayFormBase::getDisplayModeOptions

File

core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 111

Class

EntityViewDisplayEditForm
Edit form for the EntityViewDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getDisplayModeOptions() {
  return $this->entityDisplayRepository
    ->getViewModeOptions($this->entity
    ->getTargetEntityTypeId());
}