You are here

public function Theme::getStorage in Express 8

Retrieves the theme's cache from the database.

Return value

\Drupal\bootstrap\Utility\Storage The cache object.

1 call to Theme::getStorage()
Theme::getCache in themes/contrib/bootstrap/src/Theme.php
Retrieves an individual item from a theme's cache in the database.

File

themes/contrib/bootstrap/src/Theme.php, line 585
Contains \Drupal\bootstrap.

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Code

public function getStorage() {
  static $cache = [];
  $theme = $this
    ->getName();
  if (!isset($cache[$theme])) {
    $cache[$theme] = new Storage($theme);
  }
  return $cache[$theme];
}