protected function ReplicationConfigRouteSubscriber::alterRoutes in Workspace 8
Alters the replication config route.
Parameters
\Symfony\Component\Routing\RouteCollection $collection:
Overrides RouteSubscriberBase::alterRoutes
File
- src/
EventSubscriber/ ReplicationConfigRouteSubscriber.php, line 20
Class
- ReplicationConfigRouteSubscriber
- ReplicationConfigRouteSubscriber class.
Namespace
Drupal\workspace\EventSubscriberCode
protected function alterRoutes(RouteCollection $collection) {
if ($route = $collection
->get('replication.settings_form')) {
$route
->setDefault('_controller', ReplicationConfigController::class . '::getForms');
}
}