We want to programetically render a form that contains that uses the SocialProfileTagSplitWidget widget, the #options array is populated later (after rendering the initial form). The problem is that the field is not being rendered correctly as within the widget we are returning an empty array if there are no #options. I think this should not be the case and the widget should return the basic structure of the element.
1. Create a form that uses SocialProfileTagSplitWidget
2. Try to render the form programetically but don't populate the #options of the widget.
3. Check if the widget is rendered.
Don't return an empty array if the #options are empty but rather return the already build element array.
Fixed
12.0
Code (back-end)