function public function Theme::getStorage

8.x-3.x Theme.php public Theme::getStorage()

Retrieves the theme's cache from the database.

Return value

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

Class

Theme
Defines a theme object.

Namespace

Drupal\bootstrap

Source src/Theme.php (line 588)

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