You are here

public function GroupController::listing in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Controller/GroupController.php \Drupal\rng\Controller\GroupController::listing()
  2. 3.x src/Controller/GroupController.php \Drupal\rng\Controller\GroupController::listing()

Provides a list of registration groups for an event.

Parameters

\Drupal\Core\Entity\EntityInterface $rng_event: The RNG event.

Return value

array A render array.

File

src/Controller/GroupController.php, line 40

Class

GroupController
Controller for Registration Groups.

Namespace

Drupal\rng\Controller

Code

public function listing(EntityInterface $rng_event) {
  return $this
    ->entityTypeManager()
    ->getListBuilder('registration_group')
    ->render($rng_event);
}