protected function prepareRevertedRevision(OpenyUpgradeLogInterface $revision, FormStateInterface $form_state) {
    $revision->setNewRevision();
    $revision->isDefaultRevision();
    $revision->setRevisionCreationTime(REQUEST_TIME);

    return $revision;
  }
protected function prepareRevertedRevision(OpenyUpgradeLogInterface $revision, FormStateInterface $form_state) {
    $revision->setNewRevision();
    $revision->isDefaultRevision();
    $revision->setRevisionCreationTime(REQUEST_TIME);

    return $revision;
  }
protected function prepareRevertedRevision ( OpenyUpgradeLogInterface $ revision , FormStateInterface $ form_state ) { $ revision -> setNewRevision ( ) ; $ revision -> isDefaultRevision ( ) ; $ revision -> setRevisionCreationTime ( REQUEST_TIME ) ; return $ revision ; }
Prepares a revision to be reverted.

@param \Drupal\openy_upgrade_tool\Entity\OpenyUpgradeLogInterface $revision
The revision to be reverted.
@param \Drupal\Core\Form\FormStateInterface $form_state
The current state of the form.

@return \Drupal\openy_upgrade_tool\Entity\OpenyUpgradeLogInterface
The prepared revision ready to be stored.
Prepares a revision to be reverted .