ImporterManager.php in CSV Importer 8
File
src/Plugin/ImporterManager.php
View source
<?php
namespace Drupal\csv_importer\Plugin;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class ImporterManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Importer', $namespaces, $module_handler, 'Drupal\\csv_importer\\Plugin\\ImporterInterface', 'Drupal\\csv_importer\\Annotation\\Importer');
$this
->alterInfo('importer_info');
$this
->setCacheBackend($cache_backend, 'importer_info_plugins');
}
}