function RevisionableStorageInterface::loadRevisionUnchanged

Loads an unchanged entity by revision ID from the database.

@todo Remove this method once we have a reliable way to retrieve the unchanged revision from the entity object.

Parameters

int $revision_id: The revision ID of the entity to load.

Return value

\Drupal\Core\Entity\EntityInterface|null The unchanged entity, or NULL if the entity cannot be loaded.

2 methods override RevisionableStorageInterface::loadRevisionUnchanged()
ContentEntityStorageBase::loadRevisionUnchanged in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Loads an unchanged entity by revision ID from the database.
KeyValueContentEntityStorage::loadRevisionUnchanged in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php
Loads an unchanged entity by revision ID from the database.

File

core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php, line 59

Class

RevisionableStorageInterface
A storage that supports revisionable entity types.

Namespace

Drupal\Core\Entity

Code

public function loadRevisionUnchanged($revision_id) : ?EntityInterface;

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