You are here

components-twig-extension-test-set-filter.html.twig in Components! 3.x

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

File

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