Drupal 8/9 Create new Attribute objects inside a Twig template

Within a Twig template, use the create_attribute() function to create new Attribute objects. Use any one of the following snippets in the twig template.
copy-icon
copy-icon

Comments

Authors

Read Next