BibCiteProcessorManager.php in Bibliography & Citation 2.0.x
File
src/Plugin/BibCiteProcessorManager.php
View source
<?php
namespace Drupal\bibcite\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class BibCiteProcessorManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/BibCiteProcessor', $namespaces, $module_handler, 'Drupal\\bibcite\\Plugin\\BibCiteProcessorInterface', 'Drupal\\bibcite\\Annotation\\BibCiteProcessor');
$this
->alterInfo('bibcite_bibcite_processor_info');
$this
->setCacheBackend($cache_backend, 'bibcite_bibcite_processor_plugins');
}
}