function CacheInterface::write
Writes the compiled template to cache.
Parameters
string $content The template representation as a PHP class:
4 methods override CacheInterface::write()
- ChainCache::write in vendor/
twig/ twig/ src/ Cache/ ChainCache.php - Writes the compiled template to cache.
- FilesystemCache::write in vendor/
twig/ twig/ src/ Cache/ FilesystemCache.php - Writes the compiled template to cache.
- NullCache::write in vendor/
twig/ twig/ src/ Cache/ NullCache.php - Writes the compiled template to cache.
- TwigPhpStorageCache::write in core/
lib/ Drupal/ Core/ Template/ TwigPhpStorageCache.php - Writes the compiled template to cache.
File
-
vendor/
twig/ twig/ src/ Cache/ CacheInterface.php, line 35
Class
- CacheInterface
- Interface implemented by cache classes.
Namespace
Twig\CacheCode
public function write(string $key, string $content) : void;