You are here

public function SalesforceMappingFieldPluginManager::__construct in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/SalesforceMappingFieldPluginManager.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginManager::__construct()
  2. 5.0.x modules/salesforce_mapping/src/SalesforceMappingFieldPluginManager.php \Drupal\salesforce_mapping\SalesforceMappingFieldPluginManager::__construct()

Constructs a SalesforceMappingFieldPluginManager 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/salesforce_mapping/src/SalesforceMappingFieldPluginManager.php, line 26

Class

SalesforceMappingFieldPluginManager
Plugin type manager for all views plugins.

Namespace

Drupal\salesforce_mapping

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/SalesforceMappingField', $namespaces, $module_handler);
  $this
    ->setCacheBackend($cache_backend, 'salesforce_mapping_field');
}