MigrateDrupalUiRouteSubscriber.php

Same filename in other branches
  1. 11.x core/modules/migrate_drupal_ui/src/Routing/MigrateDrupalUiRouteSubscriber.php

Namespace

Drupal\migrate_drupal_ui\Routing

File

core/modules/migrate_drupal_ui/src/Routing/MigrateDrupalUiRouteSubscriber.php

View source
<?php

namespace Drupal\migrate_drupal_ui\Routing;

use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;

/**
 * Sets the controller for Migrate Message route.
 */
class MigrateDrupalUiRouteSubscriber extends RouteSubscriberBase {
    
    /**
     * {@inheritdoc}
     */
    protected function alterRoutes(RouteCollection $collection) {
        $route = $collection->get('migrate.messages');
        if ($route) {
            $route->setDefault('_controller', '\\Drupal\\migrate_drupal_ui\\Controller\\MigrateMessageController::overview');
        }
    }

}

Classes

Title Deprecated Summary
MigrateDrupalUiRouteSubscriber Sets the controller for Migrate Message route.

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