diff --git a/apps/web-twig-demo/src/Controller/IconsController.php b/apps/web-twig-demo/src/Controller/IconsController.php index 1de761f314..c8dceb8dc3 100644 --- a/apps/web-twig-demo/src/Controller/IconsController.php +++ b/apps/web-twig-demo/src/Controller/IconsController.php @@ -34,6 +34,13 @@ private function getWebIcons(): array // sort them alphabetically sort($icons); + // remove unwanted 'sprite' from the array + $filterCallback = function ($value) { + return $value !== 'sprite'; + }; + + $icons = array_filter($icons, $filterCallback); + return $icons; } } diff --git a/packages/web-twig/src/Resources/icons/Icons.stories.twig b/packages/web-twig/src/Resources/icons/Icons.stories.twig index 02426ebdbe..8b36af0033 100644 --- a/packages/web-twig/src/Resources/icons/Icons.stories.twig +++ b/packages/web-twig/src/Resources/icons/Icons.stories.twig @@ -2,22 +2,20 @@ {% block content %} -
+ -

Icons

- - + -
+ {% endblock %}