function EntityStorageInterface::loadRevision

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::loadRevision()
  2. 10 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);

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