You are here

public function UserExportPluginManager::__construct in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  2. 8.3 modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  3. 8.4 modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  4. 8.5 modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  5. 8.6 modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  6. 8.7 modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  7. 10.3.x modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  8. 10.0.x modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  9. 10.1.x modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()
  10. 10.2.x modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php \Drupal\social_user_export\Plugin\UserExportPluginManager::__construct()

Constructs a new UserExportPluginManager object.

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

modules/social_features/social_user_export/src/Plugin/UserExportPluginManager.php, line 26

Class

UserExportPluginManager
Provides the User export plugin plugin manager.

Namespace

Drupal\social_user_export\Plugin

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/UserExportPlugin', $namespaces, $module_handler, UserExportPluginInterface::class, UserExportPlugin::class);
  $this
    ->alterInfo('social_user_export_plugin_info');
  $this
    ->setCacheBackend($cache_backend, 'social_user_export_user_export_plugin_plugins');
}