You are here

public function DebugController::listing in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 rng_debug/src/Controller/DebugController.php \Drupal\rng_debug\Controller\DebugController::listing()
  2. 3.x rng_debug/src/Controller/DebugController.php \Drupal\rng_debug\Controller\DebugController::listing()

Provides a list of rng rules for an event.

Parameters

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

Return value

array A render array.

File

rng_debug/src/Controller/DebugController.php, line 23

Class

DebugController
Controller for rng_debug.

Namespace

Drupal\rng_debug\Controller

Code

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