function entity_render_controller

Returns an entity render controller for a given entity type.

Parameters

string $entity_type: The type of the entity.

Return value

Drupal\Core\Entity\EntityRenderControllerInterface An entity render controller.

File

drupal/core/includes/entity.inc, line 568
Entity API for handling entities like nodes or users.

Code

function entity_render_controller($entity_type) {
  return Drupal::entityManager()
    ->getRenderController($entity_type);
}