Commit 0d239c45 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2877480 by Yogesh Pawar, hardik.p, eojthebrave, Cyberschorsch: Update...

Issue #2877480 by Yogesh Pawar, hardik.p, eojthebrave, Cyberschorsch: Update #cache example code on Render API overview to use Node::getCacheTags instead of hard coding
parent 17bf4688
......@@ -364,7 +364,7 @@
* '#cache' => [
* 'keys' => ['entity_view', 'node', $node->id()],
* 'contexts' => ['languages'],
* 'tags' => ['node:' . $node->id()],
* 'tags' => $node->getCacheTags(),
* 'max-age' => Cache::PERMANENT,
* ],
* @endcode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment