function CacheableResponseInterface::getCacheableMetadata

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheableResponseInterface.php \Drupal\Core\Cache\CacheableResponseInterface::getCacheableMetadata()
  2. 8.9.x core/lib/Drupal/Core/Cache/CacheableResponseInterface.php \Drupal\Core\Cache\CacheableResponseInterface::getCacheableMetadata()
  3. 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\Cache

Code

public function getCacheableMetadata();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.