You are here

public function CacheableInterface::getCacheKeys in Render cache 7.2

The cache keys associated with this potentially cacheable object.

Cache keys may either be static (just strings) or tokens (placeholders that are converted to static keys by the @cache_contexts service, depending depending on the request).

Return value

array An array of strings or cache context tokens, used to generate a cache ID.

See also

\Drupal\Core\Cache\CacheContexts::convertTokensToKeys()

1 method overrides CacheableInterface::getCacheKeys()
RenderStack::getCacheKeys in src/Cache/RenderStack.php
The cache keys associated with this potentially cacheable object.

File

lib/Drupal/Core/Cache/CacheableInterface.php, line 28
Contains \Drupal\Core\CacheableInterface

Class

CacheableInterface
Defines an interface for objects which are potentially cacheable.

Namespace

Drupal\Core\Cache

Code

public function getCacheKeys();