diff --git a/core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php b/core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php index 757b574189b48bf2a73098d0fb3099e657a527f3..d7b5756232ef50853392c4a3aa324b5f64465cf9 100644 --- a/core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php +++ b/core/modules/views/src/Plugin/Derivative/ViewsEntityRow.php @@ -95,7 +95,7 @@ public function getDerivativeDefinitions($base_plugin_definition) { $this->derivatives[$entity_type_id] = [ 'id' => 'entity:' . $entity_type_id, 'provider' => 'views', - 'title' => $entity_type->getLabel(), + 'title' => $this->t('@label view mode', ['@label' => $entity_type->getLabel()]), 'help' => $this->t('Display the @label', ['@label' => $entity_type->getLabel()]), 'base' => [$entity_type->getDataTable() ?: $entity_type->getBaseTable()], 'entity_type' => $entity_type_id, diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index 237cdd9dcfce9299c0552dc60b73debd26231aa9..fc4a983f9299b1efadbe50746e4c466d8f1a2a66 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -1700,7 +1700,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { break; case 'row': - $form['#title'] .= $this->t('How should each row in this view be styled'); + $form['#title'] .= $this->t('How should each row in this view be output'); $row_plugin_instance = $this->getPlugin('row'); $form['row'] = [ '#prefix' => '<div class="clearfix">', diff --git a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php index f3e529e095702442898b8c5a787318ab01d51d67..ef8568203cd46dc927bb5cb38bf417456befcd1d 100644 --- a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php +++ b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php @@ -583,7 +583,7 @@ protected function buildFormStyle(array &$form, FormStateInterface $form_state, $options = $this->rowStyleOptions(); $style_form['row_plugin'] = [ '#type' => 'select', - '#title' => $this->t('of'), + '#title' => $this->t('output as'), '#options' => $options, '#access' => count($options) > 1, ]; diff --git a/core/modules/views/src/Views.php b/core/modules/views/src/Views.php index 8465e7c1cbf03cc3d9c6b2e0dde7157839c2d274..87a2bc2f5d81cba592716cbcfedd60ddcc9b5a55 100644 --- a/core/modules/views/src/Views.php +++ b/core/modules/views/src/Views.php @@ -159,8 +159,9 @@ public static function fetchPluginNames($type, $key = NULL, array $base = []) { } if (!empty($plugins)) { - asort($plugins); - return $plugins; + uasort($plugins, static function ($a, $b) { + return strcmp((string) $a, (string) $b); + }); } return $plugins;