Skip to content

Commit

Permalink
added scope_config twig function
Browse files Browse the repository at this point in the history
  • Loading branch information
thampe authored Sep 23, 2021
1 parent bbc4c4a commit da20342
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Framework/View/TemplateEngine/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit da20342

Please sign in to comment.