You are here

public function CourseTypeListBuilder::render in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Config/Entity/CourseTypeListBuilder.php \Drupal\course\Config\Entity\CourseTypeListBuilder::render()
  2. 3.x src/Config/Entity/CourseTypeListBuilder.php \Drupal\course\Config\Entity\CourseTypeListBuilder::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/CourseTypeListBuilder.php, line 13

Class

CourseTypeListBuilder
Defines the list builder for profile types.

Namespace

Drupal\course\Config\Entity

Code

public function render() {
  $build = parent::render();
  $build['table']['#caption'] = t('Course types can be used to differentiate types of courses. e.g. module base activities, tree activities, external courses, etc.');
  return $build;
}