function LoaderInterface::getCacheKey
Gets the cache key to use for the cache for a given template name.
Throws
LoaderError When $name is not found
5 methods override LoaderInterface::getCacheKey()
- ArrayLoader::getCacheKey in vendor/
twig/ twig/ src/ Loader/ ArrayLoader.php - Gets the cache key to use for the cache for a given template name.
- ChainLoader::getCacheKey in vendor/
twig/ twig/ src/ Loader/ ChainLoader.php - Gets the cache key to use for the cache for a given template name.
- ComponentLoader::getCacheKey in core/
lib/ Drupal/ Core/ Template/ Loader/ ComponentLoader.php - Gets the cache key to use for the cache for a given template name.
- FilesystemLoader::getCacheKey in vendor/
twig/ twig/ src/ Loader/ FilesystemLoader.php - Gets the cache key to use for the cache for a given template name.
- StringLoader::getCacheKey in core/
lib/ Drupal/ Core/ Template/ Loader/ StringLoader.php - Gets the cache key to use for the cache for a given template name.
File
-
vendor/
twig/ twig/ src/ Loader/ LoaderInterface.php, line 36
Class
- LoaderInterface
- Interface all loaders must implement.
Namespace
Twig\LoaderCode
public function getCacheKey(string $name) : string;