function RouteProvider::getSubscribedEvents

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::getSubscribedEvents()
  2. 8.9.x core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::getSubscribedEvents()
  3. 11.x core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::getSubscribedEvents()

File

core/lib/Drupal/Core/Routing/RouteProvider.php, line 429

Class

RouteProvider
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public static function getSubscribedEvents() : array {
    $events[RoutingEvents::FINISHED][] = [
        'reset',
    ];
    return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.