function EntityStorageInterface::loadRevision

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

Load a specific entity revision.

Parameters

int|string $revision_id: The revision id.

Return value

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

Deprecated

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead.

See also

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

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

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

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 90

Class

EntityStorageInterface
Defines the interface for entity storage classes.

Namespace

Drupal\Core\Entity

Code

public function loadRevision($revision_id);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.