function MigrateDestinationPluginManager::__construct

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php \Drupal\migrate\Plugin\MigrateDestinationPluginManager::__construct()
  2. 8.9.x core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php \Drupal\migrate\Plugin\MigrateDestinationPluginManager::__construct()
  3. 11.x core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php \Drupal\migrate\Plugin\MigrateDestinationPluginManager::__construct()

Constructs a MigrateDestinationPluginManager 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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

string $attribute: (optional) The attribute class name. Defaults to 'Drupal\migrate\Attribute\MigrateDestination'.

string $annotation: (optional) The annotation class name. Defaults to 'Drupal\migrate\Annotation\MigrateDestination'.

Overrides MigratePluginManager::__construct

File

core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php, line 51

Class

MigrateDestinationPluginManager
Plugin manager for migrate destination plugins.

Namespace

Drupal\migrate\Plugin

Code

public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, $attribute = MigrateDestination::class, $annotation = 'Drupal\\migrate\\Annotation\\MigrateDestination') {
    parent::__construct($type, $namespaces, $cache_backend, $module_handler, $attribute, $annotation);
    $this->entityTypeManager = $entity_type_manager;
}

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