Loading entities

// Use the static method to load a node entity
$node = Node::load(1);

// Dynamic entity type, entity_load() now loads a single entity, the 7.x entity_load() has been renamed to entity_load_multiple().
$entity = entity_load($entity_type, $id);

// Using the storage controller.
$entity = \Drupal::entityTypeManager()->getStorage($entity_type)->load(1);

// Load multiple entities, also exists as entity_load_multiple().
$entity = \Drupal::entityTypeManager()->getStorage($entity_type)->loadMultiple(array(1, 2, 3));