
| Current Path : /var/www/html1/bbp/web/modules/contrib/migrate_tools/src/Routing/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/bbp/web/modules/contrib/migrate_tools/src/Routing/RouteProcessor.php |
<?php
namespace Drupal\migrate_tools\Routing;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\RouteProcessor\OutboundRouteProcessorInterface;
use Symfony\Component\Routing\Route;
/**
* Route processor to expand migrate_group.
*/
class RouteProcessor implements OutboundRouteProcessorInterface {
/**
* {@inheritdoc}
*/
public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) {
if ($route->hasDefault('_migrate_group')) {
if ($migration = \Drupal::entityTypeManager()->getStorage('migration')->load($parameters['migration'])) {
if ($group = $migration->get('migration_group')) {
$parameters['migration_group'] = $group;
}
}
}
}
}