You are here

public function DefaultFacetManager::__construct in Facets 8

Constructs a new instance of the DefaultFacetManager.

Parameters

\Drupal\facets\QueryType\QueryTypePluginManager $query_type_plugin_manager: The query type plugin manager.

\Drupal\facets\FacetSource\FacetSourcePluginManager $facet_source_manager: The facet source plugin manager.

\Drupal\facets\Processor\ProcessorPluginManager $processor_plugin_manager: The processor plugin manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type plugin manager.

File

src/FacetManager/DefaultFacetManager.php, line 93

Class

DefaultFacetManager
The facet manager.

Namespace

Drupal\facets\FacetManager

Code

public function __construct(QueryTypePluginManager $query_type_plugin_manager, FacetSourcePluginManager $facet_source_manager, ProcessorPluginManager $processor_plugin_manager, EntityTypeManagerInterface $entity_type_manager) {
  $this->queryTypePluginManager = $query_type_plugin_manager;
  $this->facetSourcePluginManager = $facet_source_manager;
  $this->processorPluginManager = $processor_plugin_manager;
  $this->facetStorage = $entity_type_manager
    ->getStorage('facets_facet');
}