1 entity.controller.inc public EntityControllerInterface::view($entities, $view_mode = 'full', $langcode = NULL, $page = NULL)

Creates a rendered entity.

Parameters

array $entities: An array of entity objects.

string $view_mode:

string|NULL $langcode:

bool|NULL $page: (optional) If set will control if the entity is rendered: if TRUE the entity will be rendered without its title, so that it can be embedded in another context. If FALSE the entity will be displayed with its title in a mode suitable for lists. If unset, the page mode will be enabled if the current path is the URI of the entity, as returned by entity_uri().

Return value

array: The renderable array, keyed by entity type and entity ID.

File

core/modules/entity/entity.controller.inc, line 90
Entity API controller classes and interface.

Class

EntityControllerInterface
Defines a common interface for entity controller classes.

Code

public function view($entities, $view_mode = 'full', $langcode = NULL, $page = NULL);