public function StringLoader::getCacheKey
public StringLoader::getCacheKey($name)
Gets the cache key to use for the cache for a given template name.
Parameters
string $name The name of the template to load:
Return value
string The cache key
Throws
Twig_Error_Loader When $name is not found
Overrides Twig_LoaderInterface::getCacheKey
File
- core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 47
Class
- StringLoader
- Loads string templates, also known as inline templates.
Namespace
Drupal\Core\Template\LoaderCode
public function getCacheKey($name) { return $name; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Template!Loader!StringLoader.php/function/StringLoader::getCacheKey/8.1.x