Loads an entity from the database.
string $entity_type: The entity type to load, e.g. node or user.
int $revision_id: The id of the entity to load.
Drupal\Core\Entity\EntityInterface The entity object, or FALSE if there is no entity with the given revision id.
\Drupal\Core\Entity\EntityManager
Drupal\Core\Entity\EntityStorageControllerInterface
Drupal\Core\Entity\DatabaseStorageController
function entity_revision_load($entity_type, $revision_id) {
return entity_get_controller($entity_type)
->loadRevision($revision_id);
}