public function DataFetcherPluginManager::__construct in Migrate Plus 8.2
Same name and namespace in other branches
- 8.5 src/DataFetcherPluginManager.php \Drupal\migrate_plus\DataFetcherPluginManager::__construct()
- 8 src/DataFetcherPluginManager.php \Drupal\migrate_plus\DataFetcherPluginManager::__construct()
- 8.3 src/DataFetcherPluginManager.php \Drupal\migrate_plus\DataFetcherPluginManager::__construct()
- 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 30
Class
- DataFetcherPluginManager
- Provides a plugin manager for data fetchers.
Namespace
Drupal\migrate_plusCode
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');
}