You are here

public function DataStreamTypeListBuilder::render in farmOS 2.x

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

modules/core/data_stream/src/DataStreamTypeListBuilder.php, line 48

Class

DataStreamTypeListBuilder
Provides a listing of data stream type entities.

Namespace

Drupal\data_stream

Code

public function render() {
  $build = parent::render();
  $build['table']['#empty'] = $this
    ->t('No data stream types available. <a href=":link">Add data stream type</a>.', [
    ':link' => Url::fromRoute('entity.data_stream_type.add_form')
      ->toString(),
  ]);
  return $build;
}