function MigrationPluginManager::__construct

Same name in this branch
  1. 11.x core/modules/migrate_drupal/src/MigrationPluginManager.php \Drupal\migrate_drupal\MigrationPluginManager::__construct()
Same name in other branches
  1. 9 core/modules/migrate_drupal/src/MigrationPluginManager.php \Drupal\migrate_drupal\MigrationPluginManager::__construct()
  2. 9 core/modules/migrate/src/Plugin/MigrationPluginManager.php \Drupal\migrate\Plugin\MigrationPluginManager::__construct()
  3. 8.9.x core/modules/migrate_drupal/src/MigrationPluginManager.php \Drupal\migrate_drupal\MigrationPluginManager::__construct()
  4. 8.9.x core/modules/migrate/src/Plugin/MigrationPluginManager.php \Drupal\migrate\Plugin\MigrationPluginManager::__construct()
  5. 10 core/modules/migrate_drupal/src/MigrationPluginManager.php \Drupal\migrate_drupal\MigrationPluginManager::__construct()
  6. 10 core/modules/migrate/src/Plugin/MigrationPluginManager.php \Drupal\migrate\Plugin\MigrationPluginManager::__construct()

Construct a migration plugin manager.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend for the definitions.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides DefaultPluginManager::__construct

1 call to MigrationPluginManager::__construct()
MigrationPluginManager::__construct in core/modules/migrate_drupal/src/MigrationPluginManager.php
MigrationPluginManager constructor.
1 method overrides MigrationPluginManager::__construct()
MigrationPluginManager::__construct in core/modules/migrate_drupal/src/MigrationPluginManager.php
MigrationPluginManager constructor.

File

core/modules/migrate/src/Plugin/MigrationPluginManager.php, line 55

Class

MigrationPluginManager
Plugin manager for migration plugins.

Namespace

Drupal\migrate\Plugin

Code

public function __construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager) {
    $this->factory = new ContainerFactory($this, $this->pluginInterface);
    $this->alterInfo('migration_plugins');
    $this->setCacheBackend($cache_backend, 'migration_plugins');
    $this->moduleHandler = $module_handler;
}

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