You are here

public function MapLinkManager::__construct in Address Map (& Directions) Link 8

Constructor for MapLinkManager objects.

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/MapLinkManager.php, line 32

Class

MapLinkManager
Provides the Map link plugin manager.

Namespace

Drupal\address_map_link

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/MapLink', $namespaces, $module_handler, 'Drupal\\address_map_link\\MapLinkInterface', 'Drupal\\address_map_link\\Annotation\\MapLink');
  $this
    ->alterInfo('address_map_link_map_link_info');
  $this
    ->setCacheBackend($cache_backend, 'address_map_link_map_link_plugins');
}