You are here

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\EventSubscriber

Code

protected function alterRoutes(RouteCollection $collection) {
  if ($route = $collection
    ->get('replication.settings_form')) {
    $route
      ->setDefault('_controller', ReplicationConfigController::class . '::getForms');
  }
}