You are here

public function EntityStorageInterface::loadRevision in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::loadRevision()
  2. 9 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::loadRevision()

Load a specific entity revision.

@todo Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface instead.

Parameters

int|string $revision_id: The revision id.

Return value

\Drupal\Core\Entity\EntityInterface|null The specified entity revision or NULL if not found.

See also

https://www.drupal.org/node/2926958

https://www.drupal.org/node/2927226

4 methods override EntityStorageInterface::loadRevision()
ConfigEntityStorage::loadRevision in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Load a specific entity revision.
ContentEntityStorageBase::loadRevision in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Load a specific entity revision.
KeyValueEntityStorage::loadRevision in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php
Load a specific entity revision.
RevisionableStorageInterface::loadRevision in core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php
Loads a specific entity revision.

File

core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 89

Class

EntityStorageInterface
Defines the interface for entity storage classes.

Namespace

Drupal\Core\Entity

Code

public function loadRevision($revision_id);