Closed kmonahan closed 1 week ago
Drupal 10.1 finally provides a filter for getting a unique ID in Twig: https://www.drupal.org/docs/develop/theming-drupal/twig-in-drupal/filters-modifying-variables-in-twig-templates#clean_unique_id
We've been handling this through our own custom Twig filter. To switch to Drupal's filter, we'll need to ensure we have some equivalent in Storybook, switch over existing uses, and remove the Twig filter.
Drupal 10.1 finally provides a filter for getting a unique ID in Twig: https://www.drupal.org/docs/develop/theming-drupal/twig-in-drupal/filters-modifying-variables-in-twig-templates#clean_unique_id
We've been handling this through our own custom Twig filter. To switch to Drupal's filter, we'll need to ensure we have some equivalent in Storybook, switch over existing uses, and remove the Twig filter.