Builds an updated entity object based upon the submitted form values.
For building the updated entity object the form's entity is cloned and the submitted form values are copied to entity properties. The form's entity remains unchanged.
array $form: A nested array form elements comprising the form.
array $form_state: An associative array containing the current state of the form.
\Drupal\Core\Entity\EntityInterface An updated copy of the form's entity object.
\Drupal\Core\Entity\EntityFormControllerInterface::getEntity()
public function buildEntity(array $form, array &$form_state);