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
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-17 14:04:06 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, '!') }}