entity_revision_load($entity_type, $revision_id)
Loads an entity from the database.
\Drupal::entityTypeManager()
->getStorage($entity_type)
->loadRevision($revision_id);
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|null The entity object, or NULL if there is no entity with the given revision id.
Deprecated as of Drupal 8.0.x, will be removed before Drupa