Within bootstrap theme, print radio item with label and input as siblings instead of parent -> child By default, Bootstrap will render the input radio and checkbox elements as children of the label.  This is done in Drupal\bootstrap\Plugin\Preprocess\FormElement, starting at line 45:

// Place single checkboxes and radios in the label field.
if (($checkbox || $radio)) {
  $label = Element::create($variables['label']);
  $children = &amp;$label-&gt;getProperty('children', '');


In some instances, I don't want these printed as siblings - how can I undo this?  form-element.html.twig isn't helpful unless I can somehow print the children first e.g. {{ label.#children }} and then twig will know not to print them again.  Not sure if that solution is even possible.

Thanks!
At first I was going to say hook_form_alter, but when I started digging into the Bootstrap theme I found they've created their own plugin system. I would checkout this page, you might be able to get to the render array by creating a Bootstrap theme plugin: https://drupal-bootstrap.org/api/bootstrap/docs%21plugins%21Form.md/group/plugins_form/8