You are here

public function SalesforceAuthProviderPluginManager::__construct in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/SalesforceAuthProviderPluginManager.php \Drupal\salesforce\SalesforceAuthProviderPluginManager::__construct()
  2. 5.0.x src/SalesforceAuthProviderPluginManager.php \Drupal\salesforce\SalesforceAuthProviderPluginManager::__construct()

Constructor.

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.

\Drupal\Core\Entity\EntityTypeManagerInterface $etm: Entity type manager service.

Overrides DefaultPluginManager::__construct

File

src/SalesforceAuthProviderPluginManager.php, line 54

Class

SalesforceAuthProviderPluginManager
Auth provider plugin manager.

Namespace

Drupal\salesforce

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $etm) {
  parent::__construct('Plugin/SalesforceAuthProvider', $namespaces, $module_handler, 'Drupal\\salesforce\\SalesforceAuthProviderInterface');
  $this
    ->alterInfo('salesforce_auth_provider_info');
  $this
    ->setCacheBackend($cache_backend, 'salesforce_auth_provider');
  $this->etm = $etm;
}