facets-8.x-1.x-dev/src/QueryType/QueryTypePluginManager.php
src/QueryType/QueryTypePluginManager.php
<?php
namespace Drupal\facets\QueryType;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
use Drupal\facets\Annotation\FacetsQueryType;
/**
* Defines a plugin manager for query types.
*/
class QueryTypePluginManager extends DefaultPluginManager {
/**
* {@inheritdoc}
*/
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/facets/query_type', $namespaces, $module_handler, QueryTypeInterface::class, FacetsQueryType::class);
$this->setCacheBackend($cache_backend, 'facet_query_type_plugins');
}
}
