function EntityViewDisplayInterface::build
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php \Drupal\Core\Entity\Display\EntityViewDisplayInterface::build()
- 10 core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php \Drupal\Core\Entity\Display\EntityViewDisplayInterface::build()
- 11.x 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 25
Class
- EntityViewDisplayInterface
- Provides a common interface for entity view displays.
Namespace
Drupal\Core\Entity\DisplayCode
public function build(FieldableEntityInterface $entity);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.