public function EntityRenderControllerInterface::buildContent

Build the structured $content property on the entity.

Parameters

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

array $displays: The array of entity_display objects holding the display options configured for the entity components, keyed by bundle name.

string $view_mode: The view mode in which the entity is being viewed.

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

Return value

array The content array.

2 methods override EntityRenderControllerInterface::buildContent()

File

drupal/core/lib/Drupal/Core/Entity/EntityRenderControllerInterface.php, line 32
Contains \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 $displays, $view_mode, $langcode = NULL);