Provides an implementation of CacheableResponseInterface.
\Drupal\Core\Cache\CacheableResponseInterface
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 |
© 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!CacheableResponseTrait.php/trait/CacheableResponseTrait/8.1.x