diff --git a/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php b/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php index 840e4bf..82cf748 100644 --- a/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php +++ b/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php @@ -65,6 +65,10 @@ public function onDynamicRoutes(RouteBuildEvent $event) { * * @param \Drupal\Core\Routing\RouteBuildEvent $event * The route build event. + * + * @return bool + * The alterRoutes method can return a boolean value that indicates whether + * it actually altered some routes. */ public function onAlterRoutes(RouteBuildEvent $event) { $collection = $event->getRouteCollection();