From 9d8aaef0c11db00e373df8df7fdd78bc571b59e3 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 4 Oct 2022 22:01:34 +0100 Subject: [PATCH] Issue #2864115 by smustgrave, hass, amit.drupal, mstrelan: Simplify wording of "create a css class" label in Views --- .../views/src/Plugin/views/field/FieldPluginBase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php index 2a1c4fc85083..3a30b1ee779f 100644 --- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php @@ -605,7 +605,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { $form['element_class_enable'] = [ '#type' => 'checkbox', - '#title' => $this->t('Create a CSS class'), + '#title' => $this->t('Add HTML class'), '#states' => [ 'visible' => [ ':input[name="options[element_type_enable]"]' => ['checked' => TRUE], @@ -649,7 +649,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ]; $form['element_label_class_enable'] = [ '#type' => 'checkbox', - '#title' => $this->t('Create a CSS class'), + '#title' => $this->t('Add HTML class'), '#states' => [ 'visible' => [ ':input[name="options[element_label_type_enable]"]' => ['checked' => TRUE], @@ -694,7 +694,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { $form['element_wrapper_class_enable'] = [ '#type' => 'checkbox', - '#title' => $this->t('Create a CSS class'), + '#title' => $this->t('Add HTML class'), '#states' => [ 'visible' => [ ':input[name="options[element_wrapper_type_enable]"]' => ['checked' => TRUE], -- GitLab