function EntityViewDisplay::build
Same name in other branches
- 8.9.x 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 222
Class
- EntityViewDisplay
- Configuration entity.
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.