public function RenderStack::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.
Overrides CacheableInterface::getCacheKeys
See also
\Drupal\Core\Cache\CacheContexts::convertTokensToKeys()
File
- src/
Cache/ RenderStack.php, line 24 - Contains \Drupal\render_cache\Cache\RenderStack
Class
- RenderStack
- Defines the RenderStack service.
Namespace
Drupal\render_cache\CacheCode
public function getCacheKeys() {
return array(
'render_cache',
'foo',
);
}