4 * Contains \Drupal\bootstrap\Plugin\Preprocess\Page.
7 namespace Drupal\bootstrap\Plugin\Preprocess;
9 use Drupal\bootstrap\Annotation\BootstrapPreprocess;
10 use Drupal\bootstrap\Utility\Variables;
13 * Pre-processes variables for the "page" theme hook.
15 * @ingroup plugins_preprocess
17 * @BootstrapPreprocess("page")
19 class Page extends PreprocessBase implements PreprocessInterface {
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();