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
5406b836f7
commit
677faa7bde
|
@ -140,6 +140,7 @@ class TwigExtension extends AbstractExtension {
|
|||
// 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.
|
||||
|
|
Loading…
Reference in New Issue