diff --git a/src/Directive/ConfigurationBlockDirective.php b/src/Directive/ConfigurationBlockDirective.php index 3a999435..8b0c8cb9 100644 --- a/src/Directive/ConfigurationBlockDirective.php +++ b/src/Directive/ConfigurationBlockDirective.php @@ -54,6 +54,7 @@ public function processSub(Parser $parser, ?Node $document, string $variable, st $language = $node->getLanguage() ?? 'Unknown'; $blocks[] = [ + 'hash' => hash('sha1', $node->getValue()), 'language_label' => self::LANGUAGE_LABELS[$language] ?? ucfirst(str_replace('-', ' ', $language)), 'language' => $language, 'code' => $node->render(), diff --git a/src/Templates/default/html/directives/configuration-block.html.twig b/src/Templates/default/html/directives/configuration-block.html.twig index 4917382e..03a48d3e 100644 --- a/src/Templates/default/html/directives/configuration-block.html.twig +++ b/src/Templates/default/html/directives/configuration-block.html.twig @@ -1,14 +1,16 @@