You are here

public function MigrationListBuilder::__construct in Migrate Tools 8.4

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

Constructs a new EntityListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

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

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

\Psr\Log\LoggerInterface $logger: The logger service.

Overrides EntityListBuilder::__construct

File

src/Controller/MigrationListBuilder.php, line 61

Class

MigrationListBuilder
Provides a listing of migration entities in a given group.

Namespace

Drupal\migrate_tools\Controller

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, CurrentRouteMatch $current_route_match, MigrationPluginManagerInterface $migration_plugin_manager, LoggerInterface $logger) {
  parent::__construct($entity_type, $storage);
  $this->currentRouteMatch = $current_route_match;
  $this->migrationPluginManager = $migration_plugin_manager;
  $this->logger = $logger;
}