You are here

public function StylePluginManager::__construct in Openlayers 8.4

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

Class

StylePluginManager
Manages image effect plugins.

Namespace

Drupal\openlayers

Code

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