Verified Commit 0f37fcb7 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3230442 by ultimike, lendude, _utsavsharma, heni_deepak: Views...

Issue #3230442 by ultimike, lendude, _utsavsharma, heni_deepak: Views interface - change "Show: Content" to "Show: Content view mode"
parent 94f1d433
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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">',
+1 −1
Original line number Diff line number Diff line
@@ -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,
      ];
+3 −2
Original line number Diff line number Diff line
@@ -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;