Provides an implementation of CacheableResponseInterface.
Hierarchy
- trait \Drupal\Core\Cache\CacheableResponseTrait
See also
\Drupal\Core\Cache\CacheableResponseInterface
File
- core/lib/Drupal/Core/Cache/CacheableResponseTrait.php, line 10
Namespace
Drupal\Core\Cache
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CacheableResponseTrait::$cacheabilityMetadata | protected | property | The cacheability metadata. |
CacheableResponseTrait::addCacheableDependency | public | function | Adds a dependency on an object: merges its cacheability metadata. Overrides CacheableResponseInterface::addCacheableDependency |
CacheableResponseTrait::getCacheableMetadata | public | function | Returns the cacheability metadata for this response. Overrides CacheableResponseInterface::getCacheableMetadata |
Please login to continue.