3 namespace Drupal\migrate_plus;
5 use Drupal\Core\Cache\CacheBackendInterface;
6 use Drupal\Core\Extension\ModuleHandlerInterface;
7 use Drupal\Core\Plugin\DefaultPluginManager;
10 * Provides a plugin manager for authentication handlers.
12 * @see \Drupal\migrate_plus\Annotation\DataFetcher
13 * @see \Drupal\migrate_plus\DataFetcherPluginBase
14 * @see \Drupal\migrate_plus\DataFetcherPluginInterface
17 class AuthenticationPluginManager extends DefaultPluginManager {
20 * Constructs a new AuthenticationPluginManager.
22 * @param \Traversable $namespaces
23 * An object that implements \Traversable which contains the root paths
24 * keyed by the corresponding namespace to look for plugin implementations.
25 * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
26 * Cache backend instance to use.
27 * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
28 * The module handler to invoke the alter hook with.
30 public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
31 parent::__construct('Plugin/migrate_plus/authentication', $namespaces, $module_handler, 'Drupal\migrate_plus\AuthenticationPluginInterface', 'Drupal\migrate_plus\Annotation\Authentication');
33 $this->alterInfo('authentication_info');
34 $this->setCacheBackend($cache_backend, 'migrate_plus_plugins_authentication');