Defines an interface for responses that can expose cacheability metadata.
Hierarchy
- interface \Drupal\Core\Cache\CacheableResponseInterface
See also
\Drupal\Core\Cache\CacheableResponseTrait
File
- core/lib/Drupal/Core/Cache/CacheableResponseInterface.php, line 10
Namespace
Drupal\Core\Cache
Members
Name | Modifiers | Type | Description |
---|---|---|---|
CacheableResponseInterface::addCacheableDependency | public | function | Adds a dependency on an object: merges its cacheability metadata. |
CacheableResponseInterface::getCacheableMetadata | public | function | Returns the cacheability metadata for this response. |
Please login to continue.