public EntityViewDisplayInterface::buildMultiple(array $entities)
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.
\Drupal\Core\Entity\FieldableEntityInterface[] $entities: The entities being displayed.
array A renderable array for the entities, indexed by the same keys as the $entities array parameter.
hook_entity_display_build_alter()
public function buildMultiple(array $entities);
© 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::buildMultiple/8.1.x