protected function EntityRenderController::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.

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

string $langcode: (optional) For which language the entity should be prepared, defaults to the current content language.

4 calls to EntityRenderController::alterBuild()
3 methods override EntityRenderController::alterBuild()
CommentRenderController::alterBuild in drupal/core/modules/comment/lib/Drupal/comment/CommentRenderController.php
Overrides Drupal\Core\Entity\EntityRenderController::alterBuild().
NodeRenderController::alterBuild in drupal/core/modules/node/lib/Drupal/node/NodeRenderController.php
Overrides Drupal\Core\Entity\EntityRenderController::alterBuild().
TermRenderController::alterBuild in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/TermRenderController.php
Specific per-entity building.

File

drupal/core/lib/Drupal/Core/Entity/EntityRenderController.php, line 104
Definition of Drupal\Core\Entity\EntityRenderController.

Class

EntityRenderController
Base class for entity view controllers.

Namespace

Drupal\Core\Entity

Code

protected function alterBuild(array &$build, EntityInterface $entity, $view_mode, $langcode = NULL) {
}