You are here

public function DataFetcherPluginManager::__construct in Migrate Plus 8

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

Constructs a new DataFetcherPluginManager.

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/DataFetcherPluginManager.php, line 35
Contains \Drupal\migrate_plus\DataFetcherPluginManager.

Class

DataFetcherPluginManager
Provides a plugin manager for data fetchers.

Namespace

Drupal\migrate_plus

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/migrate_plus/data_fetcher', $namespaces, $module_handler, 'Drupal\\migrate_plus\\DataFetcherPluginInterface', 'Drupal\\migrate_plus\\Annotation\\DataFetcher');
  $this
    ->alterInfo('data_fetcher_info');
  $this
    ->setCacheBackend($cache_backend, 'migrate_plus_plugins_data_fetcher');
}