bootstrap3-1.0.1/src/Plugin/Setting/General/Forms/FormsHasErrorValueToggle.php
src/Plugin/Setting/General/Forms/FormsHasErrorValueToggle.php
<?php
namespace Drupal\bootstrap3\Plugin\Setting\General\Forms;
use Drupal\bootstrap3\Plugin\Setting\SettingBase;
/**
* The "forms_has_error_value_toggle" theme setting.
*
* @ingroup plugins_setting
*
* @BootstrapSetting(
* id = "forms_has_error_value_toggle",
* type = "checkbox",
* title = @Translation("Automatically remove error classes when values have been entered"),
* 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."),
* defaultValue = 1,
* groups = {
* "general" = @Translation("General"),
* "forms" = @Translation("Forms"),
* },
* )
*/
class FormsHasErrorValueToggle extends SettingBase {
/**
* {@inheritdoc}
*/
public function drupalSettings() {
return TRUE;
}
}
