You are here

public function MigrationListBuilder::__construct in Migrate Tools 8.3

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.4 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_plus\Plugin\MigrationConfigEntityPluginManager $migration_config_entity_plugin_manager: The plugin manager for config entity-based migrations.

Overrides EntityListBuilder::__construct

File

src/Controller/MigrationListBuilder.php, line 52

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, MigrationConfigEntityPluginManager $migration_config_entity_plugin_manager) {
  parent::__construct($entity_type, $storage);
  $this->currentRouteMatch = $current_route_match;
  $this->migrationConfigEntityPluginManager = $migration_config_entity_plugin_manager;
}