You are here

public function RelationListBuilder::render in Relation 8

Same name and namespace in other branches
  1. 8.2 src/RelationListBuilder.php \Drupal\relation\RelationListBuilder::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/RelationListBuilder.php, line 93
Contains \Drupal\relation\RelationListBuilder.

Class

RelationListBuilder
Provides a listing of relation types.

Namespace

Drupal\relation

Code

public function render() {
  $build = parent::render();
  $build['#empty'] = t('No relations exist.');
  return $build;
}