You are here

public function EventTypeListBuilder::render in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Lists/EventTypeListBuilder.php \Drupal\rng\Lists\EventTypeListBuilder::render()
  2. 8 src/Lists/EventTypeListBuilder.php \Drupal\rng\Lists\EventTypeListBuilder::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/Lists/EventTypeListBuilder.php, line 112

Class

EventTypeListBuilder
Builds a list of event config entities.

Namespace

Drupal\rng\Lists

Code

public function render() {
  $render = parent::render();
  $render['table']['#empty'] = t('No event types found.');
  return $render;
}