Verified Commit 677faa7b 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
parent 5406b836
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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.