You are here

public static function Bootstrap::extraVariables in Express 8

Provides additional variables to be used in elements and templates.

Return value

array An associative array containing key/default value pairs.

2 calls to Bootstrap::extraVariables()
ElementInfo::alter in themes/contrib/bootstrap/src/Plugin/Alter/ElementInfo.php
Alters data for a specific hook_TYPE_alter() implementation.
ThemeRegistry::alter in themes/contrib/bootstrap/src/Plugin/Alter/ThemeRegistry.php
Alters data for a specific hook_TYPE_alter() implementation.

File

themes/contrib/bootstrap/src/Bootstrap.php, line 436
Contains \Drupal\bootstrap\Bootstrap.

Class

Bootstrap
The primary class for the Drupal Bootstrap base theme.

Namespace

Drupal\bootstrap

Code

public static function extraVariables() {
  return [
    // @see https://drupal.org/node/2035055
    'context' => [],
    // @see https://drupal.org/node/2219965
    'icon' => NULL,
    'icon_position' => 'before',
    'icon_only' => FALSE,
  ];
}