diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php index 4c3b100..ef10281 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/area/Entity.php @@ -83,7 +83,11 @@ public function buildOptionsForm(&$form, &$form_state) { * All view modes of the entity type. */ protected function buildViewModeOptions() { - $options = entity_get_view_modes($this->entityType); + $options = array(); + $view_modes = entity_get_view_modes($this->entityType); + foreach ($view_modes as $mode => $settings) { + $options[$mode] = $settings['label']; + } return $options; }