Gets the entity controller class for an entity type.
Drupal\Core\Entity\EntityStorageControllerInterface
Use \Drupal\Core\Entity\EntityManager::getStorageController().
function entity_get_controller($entity_type) {
return Drupal::entityManager()
->getStorageController($entity_type);
}