function ThemeRegistryLoader::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\LoaderCode
public function getCacheKey($name) {
  // The parent implementation does unnecessary work that triggers
  // deprecations in PHP 8.1.
  return $this->findTemplate($name) ?: '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.