7c75a30e3a1e6dba49ef83f8ef9808d529225ea6
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Preprocess / FormElementLabel.php
1 <?php
2
3 namespace Drupal\bootstrap\Plugin\Preprocess;
4
5 use Drupal\bootstrap\Utility\Element;
6 use Drupal\bootstrap\Utility\Variables;
7
8 /**
9  * Pre-processes variables for the "form_element_label" theme hook.
10  *
11  * @ingroup plugins_preprocess
12  *
13  * @BootstrapPreprocess("form_element_label")
14  */
15 class FormElementLabel extends PreprocessBase implements PreprocessInterface {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function preprocessElement(Element $element, Variables $variables) {
21     // Map the element properties.
22     $variables->map(['attributes', 'is_checkbox', 'is_radio']);
23
24     // Preprocess attributes.
25     $this->preprocessAttributes();
26   }
27
28 }