public function MentionsViewBuilder::buildComponents in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 8.2 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 8.3 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 8.4 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 8.5 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 8.6 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 8.7 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 8.8 modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 10.3.x modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 10.0.x modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 10.1.x modules/custom/mentions/src/MentionsViewBuilder.php \Drupal\mentions\MentionsViewBuilder::buildComponents()
- 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\mentionsCode
public function buildComponents(array &$build, array $entities, array $displays, $view_mode) {
if (empty($entities)) {
return;
}
parent::buildComponents($build, $entities, $displays, $view_mode);
}