You are here

public function ThemeRegistryLoader::getCacheKey in Drupal 10

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) ?: '';
}