file Page.php

Namespace

Drupal\bootstrap\Plugin\Preprocess
  1. <?php
  2. namespace Drupal\bootstrap\Plugin\Preprocess;
  3. use Drupal\bootstrap\Utility\Variables;
  4. /**
  5. * Pre-processes variables for the "page" theme hook.
  6. *
  7. * @ingroup plugins_preprocess
  8. *
  9. * @BootstrapPreprocess("page")
  10. */
  11. class Page extends PreprocessBase implements PreprocessInterface {
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function preprocessVariables(Variables $variables) {
  16. // Setup default attributes.
  17. $variables->getAttributes($variables::NAVBAR);
  18. $variables->getAttributes($variables::HEADER);
  19. $variables->getAttributes($variables::CONTENT);
  20. $variables->getAttributes($variables::FOOTER);
  21. $this->preprocessAttributes();
  22. }
  23. }

Classes

Name Description
Page Pre-processes variables for the "page" theme hook.