Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Cache/CacheableJsonResponse.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Cache; | |
4 | |
5 use Symfony\Component\HttpFoundation\JsonResponse; | |
6 | |
7 /** | |
8 * A JsonResponse that contains and can expose cacheability metadata. | |
9 * | |
10 * Supports Drupal's caching concepts: cache tags for invalidation and cache | |
11 * contexts for variations. | |
12 * | |
13 * @see \Drupal\Core\Cache\Cache | |
14 * @see \Drupal\Core\Cache\CacheableMetadata | |
15 * @see \Drupal\Core\Cache\CacheableResponseTrait | |
16 */ | |
17 class CacheableJsonResponse extends JsonResponse implements CacheableResponseInterface { | |
18 | |
19 use CacheableResponseTrait; | |
20 | |
21 } |