protected function FieldCollectionItemController::buildPage in Field collection 8
Same name and namespace in other branches
- 8.3 src/Controller/FieldCollectionItemController.php \Drupal\field_collection\Controller\FieldCollectionItemController::buildPage()
Builds a field collection item page render array.
Parameters
\Drupal\field_collection\Entity\FieldCollectionItem $field_collection_item: The field collection item we are displaying.
Return value
array An array suitable for drupal_render().
1 call to FieldCollectionItemController::buildPage()
- FieldCollectionItemController::page in src/
Controller/ FieldCollectionItemController.php - Displays a field collection item.
File
- src/
Controller/ FieldCollectionItemController.php, line 75
Class
- FieldCollectionItemController
- Returns responses for Field collection item routes.
Namespace
Drupal\field_collection\ControllerCode
protected function buildPage(FieldCollectionItem $field_collection_item) {
$ret = [
'field_collection_items' => $this
->entityTypeManager()
->getViewBuilder('field_collection_item')
->view($field_collection_item),
];
return $ret;
}