You are here

public function InteractionPluginManager::__construct in Openlayers 8.4

Constructs a new Openlayers Interaction 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/InteractionPluginManager.php, line 33

Class

InteractionPluginManager
Manages image effect plugins.

Namespace

Drupal\openlayers

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/OpenlayersInteraction', $namespaces, $module_handler, 'Drupal\\openlayers\\OpenlayersPluginInterface', 'Drupal\\openlayers\\Annotation\\OpenlayersInteraction');
  $this
    ->alterInfo('openlayers_interaction_plugin_info');
  $this
    ->setCacheBackend($cache_backend, 'openlayers_interaction_plugins');
}