function MigrationConfigurationTrait::getMigrationPluginManager

Same name in other branches
  1. 9 core/modules/migrate_drupal/src/MigrationConfigurationTrait.php \Drupal\migrate_drupal\MigrationConfigurationTrait::getMigrationPluginManager()
  2. 10 core/modules/migrate_drupal/src/MigrationConfigurationTrait.php \Drupal\migrate_drupal\MigrationConfigurationTrait::getMigrationPluginManager()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.