Drupal provide an extension class for Twig to expose Drupal services and functionality as Twig functions and filters.
clean_id
t
trans