You are here

public function TourListBuilder::render in Tour UI 8

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/TourListBuilder.php, line 101

Class

TourListBuilder
Provides a listing of tours.

Namespace

Drupal\tour_ui

Code

public function render() {
  $build = parent::render();
  $build['#empty'] = $this
    ->t('No tours available. <a href="@link">Add tour</a>.', [
    '@link' => 'tour_ui.tour.add',
  ]);
  return $build;
}