Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityViewDisplayInterface.php

function 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\Display

Code

public function build(FieldableEntityInterface $entity);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal