You are here

protected function WorkflowTransitionRevertForm::copyFormValuesToEntity in Workflow 8

@todo The fact that we need to overwrite this function, is an indicator that the Transition is not completely a complete Entity.

Overrides EntityForm::copyFormValuesToEntity

File

src/Form/WorkflowTransitionRevertForm.php, line 73

Class

WorkflowTransitionRevertForm
Implements a form to revert an entity to a previous state.

Namespace

Drupal\workflow\Form

Code

protected function copyFormValuesToEntity(EntityInterface $entity, array $form, FormStateInterface $form_state) {
  return $this->entity;
}