function KeyValueContentEntityStorage::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.

Overrides RevisionableStorageInterface::loadRevisionUnchanged

File

core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php, line 53

Class

KeyValueContentEntityStorage
Provides a key value backend for content entities.

Namespace

Drupal\Core\Entity\KeyValueStore

Code

public function loadRevisionUnchanged($revision_id) : ?EntityInterface {
  return NULL;
}

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