You are here

public function CacheableResponseInterface::getCacheableMetadata in Drupal 9

Same name and namespace in other branches
  1. 8 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();