Skip to content
Snippets Groups Projects

Add caching information to block.

1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -78,9 +78,17 @@ class DrupalOrgDocumentationIssue extends BlockBase implements ContainerFactoryP
],
]);
$cache_tags = [
'node:' . $node->id(),
];
return [
'#theme' => 'drupalorg_documentation_issue_submission',
'#url' => $url->toString(),
'#cache' => [
'contexts' => ['url'],
'tags' => $cache_tags,
],
];
}
Loading