Question : drupal 8 twig add id
Answered by : gleaming-gannet-htlwomz3dthc
<div{{ attributes.setAttribute('id', 'myID') }}></div>
Source : https://www.drupal.org/docs/8/theming-drupal-8/using-attributes-in-templates | Last Update : Fri, 04 Jun 21
Answered by : gleaming-gannet-htlwomz3dthc
<div{{ attributes.setAttribute('id', 'myID') }}></div>
Source : https://www.drupal.org/docs/8/theming-drupal-8/using-attributes-in-templates | Last Update : Fri, 04 Jun 21