class MigrateDrupalUiRouteSubscriber

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

Sets the controller for Migrate Message route.

Hierarchy

Expanded class hierarchy of MigrateDrupalUiRouteSubscriber

1 string reference to 'MigrateDrupalUiRouteSubscriber'
migrate_drupal_ui.services.yml in core/modules/migrate_drupal_ui/migrate_drupal_ui.services.yml
core/modules/migrate_drupal_ui/migrate_drupal_ui.services.yml
1 service uses MigrateDrupalUiRouteSubscriber
migrate_drupal_ui.route_subscriber in core/modules/migrate_drupal_ui/migrate_drupal_ui.services.yml
Drupal\migrate_drupal_ui\Routing\MigrateDrupalUiRouteSubscriber

File

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

Namespace

Drupal\migrate_drupal_ui\Routing
View source
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');
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
MigrateDrupalUiRouteSubscriber::alterRoutes protected function Alters existing routes for a specific collection. Overrides RouteSubscriberBase::alterRoutes
RouteSubscriberBase::getSubscribedEvents public static function 10
RouteSubscriberBase::onAlterRoutes public function Delegates the route altering to self::alterRoutes(). 1

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