Drupal 8/9 how to trim the text in twig template using slice

In Drupal, character trim is possible with config but if we want to trim in the twig template then it is also possible with a slice() one of the array functions.
copy-icon

Comments

Authors

Read Next