You are here

ContextProviderManager.php in Persistent URL 8

Namespace

Drupal\purl\Plugin

File

src/Plugin/ContextProviderManager.php
View source
<?php

namespace Drupal\purl\Plugin;

use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class ContextProviderManager extends DefaultPluginManager implements ContextProviderManagerInterface {
  public function __construct(\Traversable $namespaces, CacheBackendInterface $cacheBackend, ModuleHandlerInterface $moduleHandler) {
    parent::__construct('Plugin/Purl/Context', $namespaces, $moduleHandler, 'Drupal\\purl\\Plugin\\Context\\ContextInterface', 'Drupal\\purl\\Annotation\\PurlContext');
    $this
      ->setCacheBackend($cacheBackend, 'purl_context_plugins');
  }

}

Classes