You are here

public function EntityViewDisplayInterface::build in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php \Drupal\Core\Entity\Display\EntityViewDisplayInterface::build()

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()

1 method overrides EntityViewDisplayInterface::build()
EntityViewDisplay::build in core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
Builds a renderable array for the components of an entity.

File

core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php, line 30
Contains \Drupal\Core\Entity\Display\EntityViewDisplayInterface.

Class

EntityViewDisplayInterface
Provides a common interface for entity view displays.

Namespace

Drupal\Core\Entity\Display

Code

public function build(FieldableEntityInterface $entity);