Add a new clean_unique_id Twig filter for Html::getUniqueId

Created on 23 February 2020, almost 5 years ago
Updated 30 May 2023, over 1 year ago

Problem/Motivation

Both \Drupal\Component\Utility\Html::getId and \Drupal\Component\Utility\Html::getClass are available as Twig filters (clean_id and clean_class respectively), but \Drupal\Component\Utility\Html::getUniqueId is not available.

Proposed resolution

Add a clean_unique_id Twig filter that calls back to \Drupal\Component\Utility\Html::getUniqueId.

Release notes snippet

To do.

Feature request
Status

Fixed

Version

10.1

Component
Render 

Last updated 6 days ago

Created by

🇺🇸United States alexdmccabe Orlando, FL, US / Seminole lands

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024