Can a group of fields be added to $form in buildForm()? I am defining a custom form to be added to the $build array of a specific node, using form elements as defined here.

Is it possible to add a field collection to the $form array, like '#type' =&gt; 'field_collection' or something similar?
It turns out fieldset is what I was looking for:


  Provides a render element for a group of form elements.