Defines an interface for responses that can expose cacheability metadata.
\Drupal\Core\Cache\CacheableResponseTrait
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. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!CacheableResponseInterface.php/interface/CacheableResponseInterface/8.1.x