diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php index 1ac1cf1..cf3500e 100644 --- a/core/lib/Drupal/Core/Template/TwigExtension.php +++ b/core/lib/Drupal/Core/Template/TwigExtension.php @@ -84,8 +84,8 @@ public function getFilters() { new \Twig_SimpleFilter('without', 'twig_without'), // CSS class and ID filters. - new \Twig_SimpleFilter('class', 'drupal_html_class'), - new \Twig_SimpleFilter('id', 'drupal_html_id'), + new \Twig_SimpleFilter('clean_class', 'drupal_html_class'), + new \Twig_SimpleFilter('clean_id', 'drupal_clean_id_identifier'), ); } diff --git a/core/modules/system/src/Tests/Theme/TwigFilterTest.php b/core/modules/system/src/Tests/Theme/TwigFilterTest.php index aca4df8..5a285c7 100644 --- a/core/modules/system/src/Tests/Theme/TwigFilterTest.php +++ b/core/modules/system/src/Tests/Theme/TwigFilterTest.php @@ -112,7 +112,7 @@ public function testTwigWithoutFilter() { 'message' => 'All attributes printed again.', ), array( - 'expected' => '