diatem-net / twig_truncate
Return truncated string
Package info
github.com/diatem-net/twig-truncate
Type:drupal-module
pkg:composer/diatem-net/twig_truncate
1.0
2022-12-27 22:23 UTC
This package is not auto-updated.
Last update: 2026-03-19 11:33:56 UTC
README
The Truncate allows you to truncate a string.
REQUIREMENTS
Drupal 9.x.
INSTALLATION
Install this module as usual. Please see https://www.drupal.org/docs/extending-drupal/installing-modules
USAGE
paramètres: - n number of characters defaukt to 150 - endchar default to '…'
{{ the_string|truncate(100, '!') }}