Skip to content
Snippets Groups Projects

add code from patch #6

4 unresolved threads
4 files
+ 26
6
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -16,6 +16,21 @@ class Cache {
*/
const PERMANENT = CacheBackendInterface::CACHE_PERMANENT;
/**
* Use this inside a #cache array to add cache contexts.
*/
const CONTEXTS = 'contexts';
/**
* Use this inside a #cache array to specify cache max age.
*/
const MAX_AGE = 'max-age';
/**
* Use this inside a #cache array to add cache tags.
*/
const TAGS = 'tags';
    • Comment on lines +19 to +33

      What is "a #cache array"? Maybe we should phrase it as "the #cache key of a render array"? It's replacing one drupalism with another but at least it points readers in the right direction.

Please register or sign in to reply
/**
* Merges lists of cache contexts and removes duplicates.
*
Loading