function CacheableResponseInterface::getCacheableMetadata
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Cache/CacheableResponseInterface.php \Drupal\Core\Cache\CacheableResponseInterface::getCacheableMetadata()
- 10 core/lib/Drupal/Core/Cache/CacheableResponseInterface.php \Drupal\Core\Cache\CacheableResponseInterface::getCacheableMetadata()
- 11.x core/lib/Drupal/Core/Cache/CacheableResponseInterface.php \Drupal\Core\Cache\CacheableResponseInterface::getCacheableMetadata()
Returns the cacheability metadata for this response.
Return value
\Drupal\Core\Cache\CacheableMetadata
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheableResponseInterface.php, line 35
Class
- CacheableResponseInterface
- Defines an interface for responses that can expose cacheability metadata.
Namespace
Drupal\Core\CacheCode
public function getCacheableMetadata();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.