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

Breadcrumb

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

function ThemeRegistryLoader::getCacheKey

Overrides FilesystemLoader::getCacheKey

File

core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php, line 75

Class

ThemeRegistryLoader
Loads templates based on information from the Drupal theme registry.

Namespace

Drupal\Core\Template\Loader

Code

public function getCacheKey(string $name) : string {
    // The parent implementation does unnecessary work that triggers
    // deprecations in PHP 8.1.
    return $this->findTemplate($name) ?: '';
}

API Navigation

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