Returns an entity render controller for a given entity type.
string $entity_type: The type of the entity.
Drupal\Core\Entity\EntityRenderControllerInterface An entity render controller.
function entity_render_controller($entity_type) {
return Drupal::entityManager()
->getRenderController($entity_type);
}