From 15040b42e2a200eb765c3980e6927d9e34db0c08 Mon Sep 17 00:00:00 2001 From: Alex Pott 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 (cherry picked from commit 9d8aaef0c11db00e373df8df7fdd78bc571b59e3) --- .../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 47fac700cfd..2269ea29d24 100644 --- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php @@ -590,7 +590,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf $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], @@ -634,7 +634,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf ]; $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], @@ -679,7 +679,7 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf $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],