You are here

Page.php in Express 8

File

themes/contrib/bootstrap/src/Plugin/Preprocess/Page.php
View source
<?php

/**
 * @file
 * Contains \Drupal\bootstrap\Plugin\Preprocess\Page.
 */
namespace Drupal\bootstrap\Plugin\Preprocess;

use Drupal\bootstrap\Annotation\BootstrapPreprocess;
use Drupal\bootstrap\Utility\Variables;

/**
 * Pre-processes variables for the "page" theme hook.
 *
 * @ingroup plugins_preprocess
 *
 * @BootstrapPreprocess("page")
 */
class Page extends PreprocessBase implements PreprocessInterface {

  /**
   * {@inheritdoc}
   */
  public function preprocessVariables(Variables $variables) {

    // Setup default attributes.
    $variables
      ->getAttributes($variables::NAVBAR);
    $variables
      ->getAttributes($variables::HEADER);
    $variables
      ->getAttributes($variables::CONTENT);
    $variables
      ->getAttributes($variables::FOOTER);
    $this
      ->preprocessAttributes();
  }

}

Classes

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