W3cubDocs

/Drupal 8

public function CacheableResponseInterface::getCacheableMetadata

public 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();

© 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/function/CacheableResponseInterface::getCacheableMetadata/8.1.x