annotate modules/contrib/migrate_plus/src/AuthenticationPluginManager.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
rev   line source
Chris@4 1 <?php
Chris@4 2
Chris@4 3 namespace Drupal\migrate_plus;
Chris@4 4
Chris@4 5 use Drupal\Core\Cache\CacheBackendInterface;
Chris@4 6 use Drupal\Core\Extension\ModuleHandlerInterface;
Chris@4 7 use Drupal\Core\Plugin\DefaultPluginManager;
Chris@4 8
Chris@4 9 /**
Chris@4 10 * Provides a plugin manager for authentication handlers.
Chris@4 11 *
Chris@4 12 * @see \Drupal\migrate_plus\Annotation\DataFetcher
Chris@4 13 * @see \Drupal\migrate_plus\DataFetcherPluginBase
Chris@4 14 * @see \Drupal\migrate_plus\DataFetcherPluginInterface
Chris@4 15 * @see plugin_api
Chris@4 16 */
Chris@4 17 class AuthenticationPluginManager extends DefaultPluginManager {
Chris@4 18
Chris@4 19 /**
Chris@4 20 * Constructs a new AuthenticationPluginManager.
Chris@4 21 *
Chris@4 22 * @param \Traversable $namespaces
Chris@4 23 * An object that implements \Traversable which contains the root paths
Chris@4 24 * keyed by the corresponding namespace to look for plugin implementations.
Chris@4 25 * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
Chris@4 26 * Cache backend instance to use.
Chris@4 27 * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
Chris@4 28 * The module handler to invoke the alter hook with.
Chris@4 29 */
Chris@4 30 public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
Chris@4 31 parent::__construct('Plugin/migrate_plus/authentication', $namespaces, $module_handler, 'Drupal\migrate_plus\AuthenticationPluginInterface', 'Drupal\migrate_plus\Annotation\Authentication');
Chris@4 32
Chris@4 33 $this->alterInfo('authentication_info');
Chris@4 34 $this->setCacheBackend($cache_backend, 'migrate_plus_plugins_authentication');
Chris@4 35 }
Chris@4 36
Chris@4 37 }