You are here

public function AuthenticationPluginManager::__construct in Migrate Plus 8.5

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

Constructs a new AuthenticationPluginManager.

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/AuthenticationPluginManager.php, line 30

Class

AuthenticationPluginManager
Provides a plugin manager for authentication handlers.

Namespace

Drupal\migrate_plus

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/migrate_plus/authentication', $namespaces, $module_handler, 'Drupal\\migrate_plus\\AuthenticationPluginInterface', 'Drupal\\migrate_plus\\Annotation\\Authentication');
  $this
    ->alterInfo('authentication_info');
  $this
    ->setCacheBackend($cache_backend, 'migrate_plus_plugins_authentication');
}