4 * Contains \Drupal\bootstrap\Plugin\Setting\General\Forms\FormsHasErrorValueToggle.
7 namespace Drupal\bootstrap\Plugin\Setting\General\Forms;
9 use Drupal\bootstrap\Annotation\BootstrapSetting;
10 use Drupal\bootstrap\Plugin\Setting\SettingBase;
11 use Drupal\Core\Annotation\Translation;
14 * The "forms_has_error_value_toggle" theme setting.
16 * @ingroup plugins_setting
19 * id = "forms_has_error_value_toggle",
21 * title = @Translation("Automatically remove error classes when values have been entered"),
22 * description = @Translation("If an element has a <code>.has-error</code> class attached to it, enabling this will automatically remove that class when a value is entered."),
25 * "general" = @Translation("General"),
26 * "forms" = @Translation("Forms"),
30 class FormsHasErrorValueToggle extends SettingBase {
35 public function drupalSettings() {