Version 1
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Setting / General / Forms / FormsRequiredHasError.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\Setting\General\Forms\FormsRequiredHasError.
5  */
6
7 namespace Drupal\bootstrap\Plugin\Setting\General\Forms;
8
9 use Drupal\bootstrap\Annotation\BootstrapSetting;
10 use Drupal\bootstrap\Plugin\Setting\SettingBase;
11 use Drupal\Core\Annotation\Translation;
12
13 /**
14  * The "forms_required_has_error" theme setting.
15  *
16  * @ingroup plugins_setting
17  *
18  * @BootstrapSetting(
19  *   id = "forms_required_has_error",
20  *   type = "checkbox",
21  *   title = @Translation("Make required elements display as an error"),
22  *   defaultValue = 0,
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."),
24  *   groups = {
25  *     "general" = @Translation("General"),
26  *     "forms" = @Translation("Forms"),
27  *   },
28  * )
29  */
30 class FormsRequiredHasError extends SettingBase {}