function public function Page::preprocessVariables

8.x-3.x Page.php public Page::preprocessVariables(Variables $variables)

Preprocess the variables array.

Parameters

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

Overrides PreprocessBase::preprocessVariables

Class

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

Namespace

Drupal\bootstrap\Plugin\Preprocess

Source src/Plugin/Preprocess/Page.php (line 19)

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