code: protected function prepareRevertedRevision(NodeInterface $revision, FormStateInterface $form_state) {
      $revision->setNewRevision();
      $revision->isDefaultRevision(TRUE);
      $revision->setRevisionTranslationAffected(TRUE);
      return $revision;
    }
docs: {@inheritdoc}