You are here

public function MigrationController::__construct in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8.2 src/Controller/MigrationController.php \Drupal\migrate_tools\Controller\MigrationController::__construct()
  2. 8.3 src/Controller/MigrationController.php \Drupal\migrate_tools\Controller\MigrationController::__construct()
  3. 8.4 src/Controller/MigrationController.php \Drupal\migrate_tools\Controller\MigrationController::__construct()

Constructs a new MigrationController object.

Parameters

\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The plugin manager for config entity-based migrations.

\Drupal\Core\Routing\CurrentRouteMatch $currentRouteMatch: The current route match.

File

src/Controller/MigrationController.php, line 45

Class

MigrationController
Returns responses for migrate_tools migration view routes.

Namespace

Drupal\migrate_tools\Controller

Code

public function __construct(MigrationPluginManagerInterface $migration_plugin_manager, CurrentRouteMatch $currentRouteMatch) {
  $this->migrationPluginManager = $migration_plugin_manager;
  $this->currentRouteMatch = $currentRouteMatch;
}