public function EntityAPIControllerInterface::view in Entity API 7
Generate an array for rendering the given entities.
Parameters
$entities: An array of entities to render.
$view_mode: View mode, e.g. 'full', 'teaser'...
$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.
$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(). This parameter is only supported for entities which controller is a EntityAPIControllerInterface.
Return value
array The renderable array, keyed by entity name or numeric id.
1 method overrides EntityAPIControllerInterface::view()
- EntityAPIController::view in includes/
entity.controller.inc - Implements EntityAPIControllerInterface.
File
- includes/
entity.controller.inc, line 123 - Provides a controller building upon the core controller but providing more features like full CRUD functionality.
Class
- EntityAPIControllerInterface
- Interface for EntityControllers compatible with the entity API.
Code
public function view($entities, $view_mode = 'full', $langcode = NULL, $page = NULL);