You are here

public function MigratePluginManager::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/MigratePluginManager.php \Drupal\migrate\Plugin\MigratePluginManager::__construct()

Constructs a MigratePluginManager object.

Parameters

string $type: The type of the plugin: row, source, process, destination, entity_field, id_map.

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.

string $annotation: The annotation class name.

Overrides DefaultPluginManager::__construct

1 call to MigratePluginManager::__construct()
MigrateDestinationPluginManager::__construct in core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php
Constructs a MigrateDestinationPluginManager object.
1 method overrides MigratePluginManager::__construct()
MigrateDestinationPluginManager::__construct in core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php
Constructs a MigrateDestinationPluginManager object.

File

core/modules/migrate/src/Plugin/MigratePluginManager.php, line 48
Contains \Drupal\migrate\Plugin\MigratePluginManager.

Class

MigratePluginManager
Manages migrate plugins.

Namespace

Drupal\migrate\Plugin

Code

public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, $annotation = 'Drupal\\Component\\Annotation\\PluginID') {
  $plugin_interface = isset($plugin_interface_map[$type]) ? $plugin_interface_map[$type] : NULL;
  parent::__construct("Plugin/migrate/{$type}", $namespaces, $module_handler, $plugin_interface, $annotation);
  $this
    ->alterInfo('migrate_' . $type . '_info');
  $this
    ->setCacheBackend($cache_backend, 'migrate_plugins_' . $type);
}