function EntityViewDisplayInterface::buildMultiple
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php \Drupal\Core\Entity\Display\EntityViewDisplayInterface::buildMultiple()
- 8.9.x core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php \Drupal\Core\Entity\Display\EntityViewDisplayInterface::buildMultiple()
- 11.x core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php \Drupal\Core\Entity\Display\EntityViewDisplayInterface::buildMultiple()
Builds a renderable array for the components of a set of entities.
This only includes the components handled by the Display object, but excludes 'extra fields', that are typically rendered through specific, ad-hoc code in EntityViewBuilderInterface::buildComponents() or in hook_entity_view() implementations.
hook_entity_display_build_alter() is invoked on each entity, allowing 3rd party code to alter the render array.
Parameters
\Drupal\Core\Entity\FieldableEntityInterface[] $entities: The entities being displayed.
Return value
array A renderable array for the entities, indexed by the same keys as the $entities array parameter.
See also
hook_entity_display_build_alter()
1 method overrides EntityViewDisplayInterface::buildMultiple()
- EntityViewDisplay::buildMultiple in core/
lib/ Drupal/ Core/ Entity/ Entity/ EntityViewDisplay.php
File
-
core/
lib/ Drupal/ Core/ Entity/ Display/ EntityViewDisplayInterface.php, line 47
Class
- EntityViewDisplayInterface
- Provides a common interface for entity view displays.
Namespace
Drupal\Core\Entity\DisplayCode
public function buildMultiple(array $entities);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.