Simple module for embedding a webform submission edit form as a render element. Webform has this functionality built in for Webform creation forms, but I did not see a way to do it for editing a submission.

Usage:
($sid is the webform submission id)

  $form['webform_editor']=[
    '#type' => 'webform_edit',
    '#sid'=>$sid,
  ];