You are here

public function QuizListBuilder::render in Quiz 8.6

Same name and namespace in other branches
  1. 8.5 src/Config/Entity/QuizListBuilder.php \Drupal\quiz\Config\Entity\QuizListBuilder::render()
  2. 6.x src/Config/Entity/QuizListBuilder.php \Drupal\quiz\Config\Entity\QuizListBuilder::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/Config/Entity/QuizListBuilder.php, line 14

Class

QuizListBuilder
Defines the list builder for Quiz entities.

Namespace

Drupal\quiz\Config\Entity

Code

public function render() {
  $build = parent::render();
  $build['table']['#caption'] = t('Quiz.');
  return $build;
}