function entity_revision_load

Loads an entity from the database.

Parameters

string $entity_type: The entity type to load, e.g. node or user.

int $revision_id: The id of the entity to load.

Return value

Drupal\Core\Entity\EntityInterface The entity object, or FALSE if there is no entity with the given revision id.

See also

\Drupal\Core\Entity\EntityManager

Drupal\Core\Entity\EntityStorageControllerInterface

Drupal\Core\Entity\DatabaseStorageController

3 calls to entity_revision_load()

File

drupal/core/includes/entity.inc, line 111
Entity API for handling entities like nodes or users.

Code

function entity_revision_load($entity_type, $revision_id) {
  return entity_get_controller($entity_type)
    ->loadRevision($revision_id);
}