Commit 62cf4b50 authored by catch's avatar catch

Issue #2904084 by Ruslan P, Venkatesh Rajan.J: Confusing title for "Boolean"...

Issue #2904084 by Ruslan P, Venkatesh Rajan.J: Confusing title for "Boolean" field in "Manage form display"
parent cbd3299e
...@@ -35,7 +35,7 @@ public static function defaultSettings() { ...@@ -35,7 +35,7 @@ public static function defaultSettings() {
public function settingsForm(array $form, FormStateInterface $form_state) { public function settingsForm(array $form, FormStateInterface $form_state) {
$element['display_label'] = [ $element['display_label'] = [
'#type' => 'checkbox', '#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'), '#default_value' => $this->getSetting('display_label'),
'#weight' => -1, '#weight' => -1,
]; ];
......
...@@ -153,7 +153,7 @@ public function testBooleanField() { ...@@ -153,7 +153,7 @@ public function testBooleanField() {
$this->drupalPostAjaxForm(NULL, [], $field_name . "_settings_edit"); $this->drupalPostAjaxForm(NULL, [], $field_name . "_settings_edit");
$this->assertText( $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.') t('Display setting checkbox available.')
); );
...@@ -169,7 +169,7 @@ public function testBooleanField() { ...@@ -169,7 +169,7 @@ public function testBooleanField() {
$this->drupalPostAjaxForm(NULL, [], $field_name . "_settings_edit"); $this->drupalPostAjaxForm(NULL, [], $field_name . "_settings_edit");
$this->assertText( $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') t('Display setting checkbox is available')
); );
$this->assertFieldByXPath( $this->assertFieldByXPath(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment