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

Breadcrumb

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

function EntityViewBuilder::alterBuild

Specific per-entity building.

Parameters

array $build: The render array that is being created.

\Drupal\Core\Entity\EntityInterface $entity: The entity to be prepared.

\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The entity view display holding the display options configured for the entity components.

string $view_mode: The view mode that should be used to prepare the entity.

3 calls to EntityViewBuilder::alterBuild()
CommentViewBuilder::alterBuild in core/modules/comment/src/CommentViewBuilder.php
Specific per-entity building.
CommentViewBuilder::alterBuild in core/modules/comment/src/CommentViewBuilder.php
Specific per-entity building.
EntityViewBuilder::buildMultiple in core/lib/Drupal/Core/Entity/EntityViewBuilder.php
Builds multiple entities' views; augments entity defaults.
1 method overrides EntityViewBuilder::alterBuild()
CommentViewBuilder::alterBuild in core/modules/comment/src/CommentViewBuilder.php
Specific per-entity building.

File

core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 390

Class

EntityViewBuilder
Base class for entity view builders.

Namespace

Drupal\Core\Entity

Code

protected function alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
}

API Navigation

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