You are here

public function Page::preprocessVariables in Express 8

Preprocess the variables array.

Parameters

\Drupal\bootstrap\Utility\Variables $variables: The Variables object.

Overrides PreprocessBase::preprocessVariables

File

themes/contrib/bootstrap/src/Plugin/Preprocess/Page.php, line 24
Contains \Drupal\bootstrap\Plugin\Preprocess\Page.

Class

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

Namespace

Drupal\bootstrap\Plugin\Preprocess

Code

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();
}