Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Registry.php

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 322

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal