function MigrateDrupalUiRouteSubscriber::alterRoutes

Same name in other branches
  1. 11.x core/modules/migrate_drupal_ui/src/Routing/MigrateDrupalUiRouteSubscriber.php \Drupal\migrate_drupal_ui\Routing\MigrateDrupalUiRouteSubscriber::alterRoutes()

Overrides RouteSubscriberBase::alterRoutes

File

core/modules/migrate_drupal_ui/src/Routing/MigrateDrupalUiRouteSubscriber.php, line 16

Class

MigrateDrupalUiRouteSubscriber
Sets the controller for Migrate Message route.

Namespace

Drupal\migrate_drupal_ui\Routing

Code

protected function alterRoutes(RouteCollection $collection) {
    $route = $collection->get('migrate.messages');
    if ($route) {
        $route->setDefault('_controller', '\\Drupal\\migrate_drupal_ui\\Controller\\MigrateMessageController::overview');
    }
}

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