You are here

components-twig-extension-test-add-filter.html.twig in Components! 8.2

{{ element|add('list.#items.0.#attributes.class', 'new-class') }}

File

tests/modules/components_twig_extension_test/templates/components-twig-extension-test-add-filter.html.twig
View source
  1. {{ element|add('list.#items.0.#attributes.class', 'new-class') }}