Skip to content

Instantly share code, notes, and snippets.

@arturu
Last active November 23, 2019 14:32
Show Gist options
  • Save arturu/01b92288ff10e45805ade59f345ce843 to your computer and use it in GitHub Desktop.
Save arturu/01b92288ff10e45805ade59f345ce843 to your computer and use it in GitHub Desktop.
Drupal Twig

== Merge class to link item.link|merge({ '#options': { 'attributes': { 'class' : [ 'class1','class2','class3' ] } } })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment