-2

I have developed a custom widget for the paragraph fields. It is working very well.

Now, I would like to add this widget in a render array of a custom form.

What is the best approach?

0

I think I found a good way... feel free to comment:

1-Create an Element which will display the custom widget

2-Move a maximum of the logic from the widget to the element

3-Use the element in the widget

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.