MetadataPrefixManager.php in Views OAI-PMH 8
File
src/Plugin/MetadataPrefixManager.php
View source
<?php
namespace Drupal\views_oai_pmh\Plugin;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
class MetadataPrefixManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/MetadataPrefix', $namespaces, $module_handler, 'Drupal\\views_oai_pmh\\Plugin\\MetadataPrefixInterface', 'Drupal\\views_oai_pmh\\Annotation\\MetadataPrefix');
$this
->alterInfo('views_oai_pmh_views_oai_pmh_prefix_info');
$this
->setCacheBackend($cache_backend, 'views_oai_pmh_views_oai_pmh_prefix_plugins');
}
}