W3cubDocs

/Drupal 8

public function EntityViewDisplayInterface::build

public EntityViewDisplayInterface::build(FieldableEntityInterface $entity)

Builds a renderable array for the components of an entity.

See the buildMultiple() method for details.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The entity being displayed.

Return value

array A renderable array for the entity.

See also

\Drupal\Core\Entity\Display\EntityViewDisplayInterface::buildMultiple()

File

core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php, line 25

Class

EntityViewDisplayInterface
Provides a common interface for entity view displays.

Namespace

Drupal\Core\Entity\Display

Code

public function build(FieldableEntityInterface $entity);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Display!EntityViewDisplayInterface.php/function/EntityViewDisplayInterface::build/8.1.x