function Registry::setCache

Persists the theme registry in the cache backend.

1 call to Registry::setCache()
Registry::get in core/lib/Drupal/Core/Theme/Registry.php
Returns the complete theme registry from cache or rebuilds it.

File

core/lib/Drupal/Core/Theme/Registry.php, line 327

Class

Registry
Defines the theme registry service.

Namespace

Drupal\Core\Theme

Code

protected function setCache() {
  $this->cache
    ->set('theme_registry:' . $this->theme
    ->getName(), $this->registry[$this->theme
    ->getName()]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.