diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/BooleanCheckboxWidget.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/BooleanCheckboxWidget.php index 1d4a202f00fe0d815492adeff84ea20db26644a8..660a06460e778c0181da8a2b90957d861c838f35 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/BooleanCheckboxWidget.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/BooleanCheckboxWidget.php @@ -35,7 +35,7 @@ public static function defaultSettings() { public function settingsForm(array $form, FormStateInterface $form_state) { $element['display_label'] = [ '#type' => 'checkbox', - '#title' => t('Use field label instead of the "On label" as label'), + '#title' => t('Use field label instead of the "On" label as the label.'), '#default_value' => $this->getSetting('display_label'), '#weight' => -1, ]; diff --git a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php index 6fc6c6dc9f0b5846588549d85518b5a1363330b2..7e4d2ff7d20e0ebd4fd255081d55e453aabc6218 100644 --- a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php +++ b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php @@ -153,7 +153,7 @@ public function testBooleanField() { $this->drupalPostAjaxForm(NULL, [], $field_name . "_settings_edit"); $this->assertText( - 'Use field label instead of the "On label" as label', + 'Use field label instead of the "On" label as the label.', t('Display setting checkbox available.') ); @@ -169,7 +169,7 @@ public function testBooleanField() { $this->drupalPostAjaxForm(NULL, [], $field_name . "_settings_edit"); $this->assertText( - 'Use field label instead of the "On label" as label', + 'Use field label instead of the "On" label as the label.', t('Display setting checkbox is available') ); $this->assertFieldByXPath(