From d23ee7405f32ad22dc42b5f61c853db279675ee2 Mon Sep 17 00:00:00 2001 From: Daniel Wehner <daniel@tag1consulting.com> Date: Sun, 14 Feb 2016 19:08:41 +0100 Subject: [PATCH] rename function --- src/Form/RevisionRevertForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/RevisionRevertForm.php b/src/Form/RevisionRevertForm.php index 0055833..9bd0a20 100644 --- a/src/Form/RevisionRevertForm.php +++ b/src/Form/RevisionRevertForm.php @@ -120,7 +120,7 @@ class RevisionRevertForm extends ConfirmFormBase { // The revision timestamp will be updated when the revision is saved. Keep // the original one for the confirmation message. - $this->revision = $this->prepareRevertedRevision($this->revision); + $this->revision = $this->prepareRevisionRevert($this->revision); if ($this->revision instanceof EntityRevisionLogInterface) { $original_revision_timestamp = $this->revision->getRevisionCreationTime(); @@ -149,7 +149,7 @@ class RevisionRevertForm extends ConfirmFormBase { * @return \Drupal\Core\Entity\RevisionableInterface * The prepared revision ready to be stored. */ - protected function prepareRevertedRevision(RevisionableInterface $revision) { + protected function prepareRevisionRevert(RevisionableInterface $revision) { $revision->setNewRevision(); $revision->isDefaultRevision(TRUE); -- GitLab