public function RecipientTypePluginManager::__construct in Workbench Email 8
Same name and namespace in other branches
- 2.x src/RecipientTypePluginManager.php \Drupal\workbench_email\RecipientTypePluginManager::__construct()
Constructs a RecipientTypePluginManager 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
- src/
RecipientTypePluginManager.php, line 31
Class
- RecipientTypePluginManager
- Manages recipient types.
Namespace
Drupal\workbench_emailCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/RecipientType', $namespaces, $module_handler, 'Drupal\\workbench_email\\Plugin\\RecipientTypeInterface', 'Drupal\\workbench_email\\Annotation\\RecipientType');
$this
->alterInfo('recipient_type_info');
$this
->setCacheBackend($cache_backend, 'recipient_type_plugins');
}