public function AESPluginManager::__construct in AES encryption 8.2
Constructs a AESPluginManager 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.
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ AESPluginManager.php, line 35
Class
- AESPluginManager
- Plugin type manager for AES.
Namespace
Drupal\aes\PluginCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/AES', $namespaces, $module_handler, 'Drupal\\aes\\Plugin\\AESPluginBase', 'Drupal\\aes\\Annotation\\Cryptor');
$this
->setCacheBackend($cache_backend, 'aes_encryptors');
$this->mapper = 'Would be nice to use some standard Singleton here, but so far using own implementation.';
}