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);
doc_Drupal
2016-10-29 09:09:03
Comments
Leave a Comment

Please login to continue.