4 * Contains \Drupal\bootstrap\Plugin\Setting\General\Forms\FormsRequiredHasError.
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_required_has_error" theme setting.
16 * @ingroup plugins_setting
19 * id = "forms_required_has_error",
21 * title = @Translation("Make required elements display as an error"),
23 * description = @Translation("If an element in a form is required, enabling this will always display the element with a <code>.has-error</code> class. This turns the element red and helps in usability for determining which form elements are required to submit the form."),
25 * "general" = @Translation("General"),
26 * "forms" = @Translation("Forms"),
30 class FormsRequiredHasError extends SettingBase {}