Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CacheInterface.php

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\Cache

Code

public function write(string $key, string $content) : void;
RSS feed
Powered by Drupal