Allow |withoutKey filter to receive an array of keys #7230
Labels
enhancement
improvements to existing features
site development 👩💻
features related to website/API development
Milestone
I would be nice if the |withoutKey Twig filter could be passed an array of keys to be removed.
Instead of:
{% set config = config|withoutKey('maxWidth')|withoutKey('maxHeight')|withoutKey('class') %}
It would be cleaner to do something like this:
{% set config = config|withoutKey(['maxWidth', 'maxHeight', 'class']) %}
The text was updated successfully, but these errors were encountered: