You are here

public function EntityAPIControllerInterface::buildContent in Entity API 7

Builds a structured array representing the entity's content.

The content built for the entity will vary depending on the $view_mode parameter.

Parameters

$entity: An entity object.

$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.

Return value

array The renderable array.

1 method overrides EntityAPIControllerInterface::buildContent()
EntityAPIController::buildContent in includes/entity.controller.inc
Implements EntityAPIControllerInterface.

File

includes/entity.controller.inc, line 98
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 buildContent($entity, $view_mode = 'full', $langcode = NULL);