You are here

public function CourseEnrollmentTypeListBuilder::render in Course 8.3

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

Class

CourseEnrollmentTypeListBuilder
Defines the list builder for profile types.

Namespace

Drupal\course\Config\Entity

Code

public function render() {
  $build = parent::render();
  $build['table']['#caption'] = t('Enrollment types can be used to gather information before an enrollment into a course. It is recommended to use one enrollment types across multiple courses instead of creating a new enrollment type for each course.');
  return $build;
}