diff --git a/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php b/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php index 6236520..429d185 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php @@ -102,7 +102,7 @@ protected function doDeleteFieldItems($entities) { /** * {@inheritdoc} */ - protected function doDeleteFieldItemsRevision(ContentEntityInterface $revision) { + protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) { } /** diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index 95bc44e..27d078c 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -307,7 +307,7 @@ public function deleteRevision($revision_id) { throw new EntityStorageException('Default revision can not be deleted'); } $this->invokeFieldMethod('deleteRevision', $revision); - $this->doDeleteFieldItemsRevision($revision); + $this->doDeleteRevisionFieldItems($revision); $this->invokeHook('revision_delete', $revision); } } @@ -318,7 +318,7 @@ public function deleteRevision($revision_id) { * @param \Drupal\Core\Entity\ContentEntityInterface $revision * An entity revision object to be deleted. */ - abstract protected function doDeleteFieldItemsRevision(ContentEntityInterface $revision); + abstract protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision); /** * Checks translation statuses and invoke the related hooks if needed. diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php index c98aa19..a01e01d 100644 --- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php +++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php @@ -588,7 +588,7 @@ protected function doLoadRevisionFieldItems($revision_id) { /** * {@inheritdoc} */ - protected function doDeleteFieldItemsRevision(ContentEntityInterface $revision) { + protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) { $this->database->delete($this->revisionTable) ->condition($this->revisionKey, $revision->getRevisionId()) ->execute();