- Issue created by @brad.bulger
- πΊπΈUnited States jayhuskins
In order to access the
Symfony\Component\String\UnicodeString
class in twig, you need to add it as an allowed class in yoursettings.php
with thetwig_sandbox_allowed_classes
setting. For example:$settings['twig_sandbox_allowed_classes'] = [ 'Symfony\Component\String\UnicodeString', 'Drupal\Core\Template\Attribute', ];
See more on how this is processed in the TwigSandboxPolicy.
- Status changed to Needs work
about 1 year ago 7:40pm 27 February 2024 - πΊπΈUnited States jayhuskins
This should be documented on both the module page and the README