Skip to content
Snippets Groups Projects
Verified Commit 4873ef5c authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3115445 by mherchel, Ratan Priya, jedihe, alexdmccabe, selvakumar-96,...

Issue #3115445 by mherchel, Ratan Priya, jedihe, alexdmccabe, selvakumar-96, Neslee Canil Pinto, catch, joycehutch, gonssal, Daniel Korte, shashank5563, Luke.Leber, SKAUGHT: Add a new clean_unique_id Twig filter for Html::getUniqueId

(cherry picked from commit 677faa7b)
parent bab4e144
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,7 @@ public function getFilters() {
// CSS class and ID filters.
new TwigFilter('clean_class', '\Drupal\Component\Utility\Html::getClass'),
new TwigFilter('clean_id', '\Drupal\Component\Utility\Html::getId'),
new TwigFilter('clean_unique_id', '\Drupal\Component\Utility\Html::getUniqueId'),
new TwigFilter('add_class', [$this, 'addClass']),
new TwigFilter('set_attribute', [$this, 'setAttribute']),
// This filter will render a renderable array to use the string results.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment