You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
I think it should be good, if we can add predefined attributes in config files easily, which are accessible in twig templates as Drupal's attributes object.
I think it should be good, if we can add predefined attributes in config files easily, which are accessible in twig templates as Drupal's attributes object.
Drupal's attribute usage in twig:
https://www.drupal.org/docs/8/theming-drupal-8/using-attributes-in-templates
There is a JavaScript port of the Drupal's Attribute object, which can be used:
https://www.npmjs.com/package/drupal-attribute
It will be good, if all the context values, where the key start with '_' character and ends with '_attributes' are converted into drupal attribute.
So I would like something like this:
With this config.yml:
And with this twig template:
I get this HTML output:
The text was updated successfully, but these errors were encountered: