You are here

public function RegistrationListBuilder::render in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Lists/RegistrationListBuilder.php \Drupal\rng\Lists\RegistrationListBuilder::render()
  2. 3.x src/Lists/RegistrationListBuilder.php \Drupal\rng\Lists\RegistrationListBuilder::render()

Parameters

\Drupal\Core\Entity\EntityInterface $rng_event: The event entity to display registrations.

Overrides EntityListBuilder::render

File

src/Lists/RegistrationListBuilder.php, line 68

Class

RegistrationListBuilder
Builds a list of registrations.

Namespace

Drupal\rng\Lists

Code

public function render(EntityInterface $rng_event = NULL) {
  if (isset($rng_event)) {
    $this->event = $rng_event;
  }
  $render = parent::render();
  $render['table']['#empty'] = t('No registrations found for this event.');
  return $render;
}