diff --git a/Framework/View/TemplateEngine/Twig.php b/Framework/View/TemplateEngine/Twig.php index d7b6635..3cd5647 100644 --- a/Framework/View/TemplateEngine/Twig.php +++ b/Framework/View/TemplateEngine/Twig.php @@ -105,6 +105,7 @@ private function initTwig() 'needs_context' => true, 'is_safe' => ['html'] ])); + $this->twig->addFunction(new TwigFunction('scope_config', [$this->scopeConfig, 'getValue'])); $this->twig->addFilter(new TwigFilter('trans', '__')); $this->twig->addExtension(new DebugExtension());