function RulesUiRouteSubscriber::alterRoutes
Overrides RouteSubscriberBase::alterRoutes
File
-
src/
Routing/ RulesUiRouteSubscriber.php, line 37
Class
- RulesUiRouteSubscriber
- Adds routes generated by the rules UI handlers.
Namespace
Drupal\rules\RoutingCode
protected function alterRoutes(RouteCollection $collection) {
foreach ($this->rulesUiManager
->getDefinitions() as $name => $definition) {
$ui_definition = $this->rulesUiManager
->getDefinition($name);
$this->registerRoutes($ui_definition, $collection);
}
}