- Issue created by @joachim
- 🇮🇳India kalpanajaiswal
new TwigFilter('truncate', [Unicode::class, 'truncate']),
Twig Tweak is not implementing its own truncate() logic, but is delegating to:
\Drupal\Component\Utility\Unicode::truncate()
we can wrap it in custom method and safely cast or normalize input before it goes into Unicode::truncate().