b181316c0f0f789447dd362e412c6989794b10ae
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Preprocess / Page.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\Preprocess\Page.
5  */
6
7 namespace Drupal\bootstrap\Plugin\Preprocess;
8
9 use Drupal\bootstrap\Annotation\BootstrapPreprocess;
10 use Drupal\bootstrap\Utility\Variables;
11
12 /**
13  * Pre-processes variables for the "page" theme hook.
14  *
15  * @ingroup plugins_preprocess
16  *
17  * @BootstrapPreprocess("page")
18  */
19 class Page extends PreprocessBase implements PreprocessInterface {
20
21   /**
22    * {@inheritdoc}
23    */
24   public function preprocessVariables(Variables $variables) {
25     // Setup default attributes.
26     $variables->getAttributes($variables::NAVBAR);
27     $variables->getAttributes($variables::HEADER);
28     $variables->getAttributes($variables::CONTENT);
29     $variables->getAttributes($variables::FOOTER);
30     $this->preprocessAttributes();
31   }
32
33 }