Loading src/Plugin/Field/FieldWidget/BootstrapToggle.php +2 −2 Changes for src/Plugin/Field/FieldWidget/BootstrapToggle.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -254,10 +254,10 @@ class BootstrapToggle extends WidgetBase { // Set data-on and data-off attributes in a button. if ($this->getSetting('bootstraptoggle_data_on')) { $element['#attributes']['data-on'] = $this->getSetting('bootstraptoggle_data_on'); $element['#attributes']['data-on'] = $this->t(':label', [':label' => $this->t($this->getSetting('bootstraptoggle_data_on'))]); } if ($this->getSetting('bootstraptoggle_data_off')) { $element['#attributes']['data-off'] = $this->getSetting('bootstraptoggle_data_off'); $element['#attributes']['data-off'] = $this->t(':label', [':label' => $this->t($this->getSetting('bootstraptoggle_data_off'))]); } // Set data-size attribute of button. Loading Loading
src/Plugin/Field/FieldWidget/BootstrapToggle.php +2 −2 Changes for src/Plugin/Field/FieldWidget/BootstrapToggle.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -254,10 +254,10 @@ class BootstrapToggle extends WidgetBase { // Set data-on and data-off attributes in a button. if ($this->getSetting('bootstraptoggle_data_on')) { $element['#attributes']['data-on'] = $this->getSetting('bootstraptoggle_data_on'); $element['#attributes']['data-on'] = $this->t(':label', [':label' => $this->t($this->getSetting('bootstraptoggle_data_on'))]); } if ($this->getSetting('bootstraptoggle_data_off')) { $element['#attributes']['data-off'] = $this->getSetting('bootstraptoggle_data_off'); $element['#attributes']['data-off'] = $this->t(':label', [':label' => $this->t($this->getSetting('bootstraptoggle_data_off'))]); } // Set data-size attribute of button. Loading