public function EntityRenderControllerInterface::buildContent

Build the structured $content property on the entity.

Parameters

array $entities: The entities, implementing EntityInterface, whose content is being built.

string $view_mode: (optional) The view mode that should be used to build the entity.

string $langcode: (optional) For which language the entity should be build, defaults to the current content language.

Return value

array The content array.

1 method overrides EntityRenderControllerInterface::buildContent()

File

drupal/core/lib/Drupal/Core/Entity/EntityRenderControllerInterface.php, line 28
Definition of Drupal\Core\Entity\EntityRenderControllerInterface.

Class

EntityRenderControllerInterface
Defines a common interface for entity view controller classes.

Namespace

Drupal\Core\Entity

Code

public function buildContent(array $entities = array(), $view_mode = 'full', $langcode = NULL);