Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299268

Allow instantiating Attribute objects within Twig

$
0
0

Problem/Motivation

Sometimes you have an array of attributes and it would be nice if you could addClass, removeClass, setAttribute, etc. rather than trying to do array manipulation.

Proposed resolution

Add a function to our Twig extension to allow creating an Attribute object from an array of attributes.

Remaining tasks

All of them.

User interface changes

n/a

API changes

API addition: New Twig function added (name TBD).

Data model changes

n/a


Viewing all articles
Browse latest Browse all 299268

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>