You are here

public function MentionsViewBuilder::buildComponents in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  2. 8.2 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  3. 8.3 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  4. 8.4 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  5. 8.5 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  6. 8.6 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  7. 8.7 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  8. 8.8 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  9. 10.3.x modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  10. 10.0.x modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  11. 10.1.x modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
  12. 10.2.x modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()

Builds the component fields and properties of a set of entities.

Parameters

&$build: The renderable array representing the entity content.

\Drupal\Core\Entity\EntityInterface[] $entities: The entities whose content is being built.

\Drupal\Core\Entity\Display\EntityViewDisplayInterface[] $displays: The array of entity view displays holding the display options configured for the entity components, keyed by bundle name.

string $view_mode: The view mode in which the entity is being viewed.

Overrides EntityViewBuilder::buildComponents

File

modules/custom/mentions/src/MentionsViewBuilder.php, line 15

Class

MentionsViewBuilder
Render controller for mentions.

Namespace

Drupal\mentions

Code

public function buildComponents(array &$build, array $entities, array $displays, $view_mode) {
  if (empty($entities)) {
    return;
  }
  parent::buildComponents($build, $entities, $displays, $view_mode);
}