You are here

public function DataParserPluginManager::__construct in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8 src/DataParserPluginManager.php \Drupal\migrate_plus\DataParserPluginManager::__construct()
  2. 8.2 src/DataParserPluginManager.php \Drupal\migrate_plus\DataParserPluginManager::__construct()
  3. 8.3 src/DataParserPluginManager.php \Drupal\migrate_plus\DataParserPluginManager::__construct()
  4. 8.4 src/DataParserPluginManager.php \Drupal\migrate_plus\DataParserPluginManager::__construct()

Constructs a new DataParserPluginManager.

Parameters

\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.

Overrides DefaultPluginManager::__construct

File

src/DataParserPluginManager.php, line 30

Class

DataParserPluginManager
Provides a plugin manager for data parsers.

Namespace

Drupal\migrate_plus

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/migrate_plus/data_parser', $namespaces, $module_handler, 'Drupal\\migrate_plus\\DataParserPluginInterface', 'Drupal\\migrate_plus\\Annotation\\DataParser');
  $this
    ->alterInfo('data_parser_info');
  $this
    ->setCacheBackend($cache_backend, 'migrate_plus_plugins_data_parser');
}