You are here

public function FieldCollectionListBuilder::render in Field collection 8

Same name and namespace in other branches
  1. 8.3 src/FieldCollectionListBuilder.php \Drupal\field_collection\FieldCollectionListBuilder::render()

Builds the entity listing as renderable array for table.html.twig.

@todo Add a link to add a new item to the #empty text.

Overrides EntityListBuilder::render

File

src/FieldCollectionListBuilder.php, line 44

Class

FieldCollectionListBuilder
Provides a listing of field collections.

Namespace

Drupal\field_collection

Code

public function render() {
  $build = parent::render();
  $build['#empty'] = t('No field collections have been defined yet. To do so attach a field collection field to any entity.');
  return $build;
}