Problem/Motivation
Since Drupal works with render arrays all over the place, it's important to be able to easily convert them to custom elements.
Let's provide some API helper for that.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | custom_elements_add_helper.patch | 1.19 KB | fago |
Comments
Comment #2
fagoattached patch implements this via a new factory method helper on the CustomElement class.
Comment #3
fagoThis seems to work fine. Only thing we might consider is ignoring empty elements, but that can be improved after commit as well imo.
Comment #5
mostepaniukvm