This project is not covered by Drupal’s security advisory policy.

Adds support for the Twig String Extension library

Symfony Unicode String

In order to access the Symfony\Component\String\UnicodeString class in twig, you need to add it as an allowed class in your settings.php with the twig_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.

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon16 sites report using this module
  • Created by jayhuskins on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases