You are here

protected function MigrationConfigurationTrait::getMigrationPluginManager in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/src/MigrationConfigurationTrait.php \Drupal\migrate_drupal\MigrationConfigurationTrait::getMigrationPluginManager()

Gets the migration plugin manager service.

Return value

\Drupal\migrate\Plugin\MigrationPluginManagerInterface The migration plugin manager service.

File

core/modules/migrate_drupal/src/MigrationConfigurationTrait.php, line 270

Class

MigrationConfigurationTrait
Configures the appropriate migrations for a given source Drupal database.

Namespace

Drupal\migrate_drupal

Code

protected function getMigrationPluginManager() {
  if (!$this->migrationPluginManager) {
    $this->migrationPluginManager = \Drupal::service('plugin.manager.migration');
  }
  return $this->migrationPluginManager;
}