You are here

public function StaticCacheInterface::setCache in Tome 8

Adds to the Tome cache.

@returns bool Whether or not adding to the cache was successful.

Parameters

\Symfony\Component\HttpFoundation\Request $request: A request object.

\Symfony\Component\HttpFoundation\Response $response: A response object that should be stored in the page cache.

string $original_path: The original, placeholdered path.

string $destination: The path to the saved static file.

1 method overrides StaticCacheInterface::setCache()
StaticCache::setCache in modules/tome_static/src/StaticCache.php
Adds to the Tome cache.

File

modules/tome_static/src/StaticCacheInterface.php, line 41

Class

StaticCacheInterface
Determines if pages are statically cached.

Namespace

Drupal\tome_static

Code

public function setCache(Request $request, Response $response, $original_path, $destination);