function RouteBuilderTest::getSubscribedEvents

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php \Drupal\Tests\Core\Routing\RouteBuilderTest::getSubscribedEvents()

File

core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php, line 386

Class

RouteBuilderTest
Tests Drupal\Core\Routing\RouteBuilder.

Namespace

Drupal\Tests\Core\Routing

Code

public static function getSubscribedEvents() : array {
  $events[RoutingEvents::DYNAMIC] = [
    'onRouteDynamic',
  ];
  $events[RoutingEvents::ALTER] = [
    'onRouteAlter',
  ];
  return $events;
}

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