You are here

public function FieldCollectionItemController::page in Field collection 8

Same name and namespace in other branches
  1. 8.3 src/Controller/FieldCollectionItemController.php \Drupal\field_collection\Controller\FieldCollectionItemController::page()

Displays a field collection item.

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 string reference to 'FieldCollectionItemController::page'
field_collection.routing.yml in ./field_collection.routing.yml
field_collection.routing.yml

File

src/Controller/FieldCollectionItemController.php, line 61

Class

FieldCollectionItemController
Returns responses for Field collection item routes.

Namespace

Drupal\field_collection\Controller

Code

public function page(FieldCollectionItem $field_collection_item) {
  $build = $this
    ->buildPage($field_collection_item);
  return $build;
}