Skip to content
Snippets Groups Projects
Commit d23ee740 authored by Daniel Wehner's avatar Daniel Wehner
Browse files

rename function

parent a094d147
No related branches found
No related tags found
No related merge requests found
...@@ -120,7 +120,7 @@ class RevisionRevertForm extends ConfirmFormBase { ...@@ -120,7 +120,7 @@ class RevisionRevertForm extends ConfirmFormBase {
// The revision timestamp will be updated when the revision is saved. Keep // The revision timestamp will be updated when the revision is saved. Keep
// the original one for the confirmation message. // the original one for the confirmation message.
$this->revision = $this->prepareRevertedRevision($this->revision); $this->revision = $this->prepareRevisionRevert($this->revision);
if ($this->revision instanceof EntityRevisionLogInterface) { if ($this->revision instanceof EntityRevisionLogInterface) {
$original_revision_timestamp = $this->revision->getRevisionCreationTime(); $original_revision_timestamp = $this->revision->getRevisionCreationTime();
...@@ -149,7 +149,7 @@ class RevisionRevertForm extends ConfirmFormBase { ...@@ -149,7 +149,7 @@ class RevisionRevertForm extends ConfirmFormBase {
* @return \Drupal\Core\Entity\RevisionableInterface * @return \Drupal\Core\Entity\RevisionableInterface
* The prepared revision ready to be stored. * The prepared revision ready to be stored.
*/ */
protected function prepareRevertedRevision(RevisionableInterface $revision) { protected function prepareRevisionRevert(RevisionableInterface $revision) {
$revision->setNewRevision(); $revision->setNewRevision();
$revision->isDefaultRevision(TRUE); $revision->isDefaultRevision(TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment