public function ControlPluginManager::__construct in Openlayers 8.4
Constructs a new Openlayers Control plugin manager.
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/
ControlPluginManager.php, line 33
Class
- ControlPluginManager
- Manages image effect plugins.
Namespace
Drupal\openlayersCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/OpenlayersControl', $namespaces, $module_handler, 'Drupal\\openlayers\\OpenlayersPluginInterface', 'Drupal\\openlayers\\Annotation\\OpenlayersControl');
$this
->alterInfo('openlayers_control_plugin_info');
$this
->setCacheBackend($cache_backend, 'openlayers_control_plugins');
}