You are here

public function QuizQuestionListBuilder::render in Quiz 6.x

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

Class

QuizQuestionListBuilder
Defines the list builder for quiz question entities.

Namespace

Drupal\quiz\Config\Entity

Code

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