function EntityViewDisplay::build
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php \Drupal\Core\Entity\Entity\EntityViewDisplay::build()
- 10 core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php \Drupal\Core\Entity\Entity\EntityViewDisplay::build()
- 11.x core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php \Drupal\Core\Entity\Entity\EntityViewDisplay::build()
Overrides EntityViewDisplayInterface::build
File
-
core/
lib/ Drupal/ Core/ Entity/ Entity/ EntityViewDisplay.php, line 220
Class
- EntityViewDisplay
- Configuration entity that contains display options for all components of a rendered entity in a given view mode.
Namespace
Drupal\Core\Entity\EntityCode
public function build(FieldableEntityInterface $entity) {
$build = $this->buildMultiple([
$entity,
]);
return $build[0];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.