diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.php index eb979c7..9f0b725 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.php @@ -5,7 +5,7 @@ /** * A storage that supports content entity types. */ -interface ContentEntityStorageInterface extends EntityStorageInterface { +interface ContentEntityStorageInterface extends EntityStorageInterface, RevisionableEntityStorageInterface { /** * Constructs a new entity translation object, without permanently saving it. diff --git a/core/lib/Drupal/Core/Entity/EntityStorageInterface.php b/core/lib/Drupal/Core/Entity/EntityStorageInterface.php index 9f50674..c6264b4 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageInterface.php @@ -72,27 +72,6 @@ public function load($id); public function loadUnchanged($id); /** - * Load a specific entity revision. - * - * @param int|string $revision_id - * The revision id. - * - * @return \Drupal\Core\Entity\EntityInterface|null - * The specified entity revision or NULL if not found. - */ - public function loadRevision($revision_id); - - /** - * Delete a specific entity revision. - * - * A revision can only be deleted if it's not the currently active one. - * - * @param int $revision_id - * The revision id. - */ - public function deleteRevision($revision_id); - - /** * Load entities by their property values. * * @param array $values diff --git a/core/lib/Drupal/Core/Entity/RevisionableEntityStorageInterface.php b/core/lib/Drupal/Core/Entity/RevisionableEntityStorageInterface.php new file mode 100644 index 0000000..10ecdc0 --- /dev/null +++ b/core/lib/Drupal/Core/Entity/RevisionableEntityStorageInterface.php @@ -0,0 +1,31 @@ +