You are here

public function FacetsSummaryForm::__construct in Facets 8

Constructs an FacetDisplayForm object.

Parameters

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

\Drupal\facets\FacetSource\FacetSourcePluginManager $facet_source_plugin_manager: The plugin manager for facet sources.

\Drupal\facets\FacetManager\DefaultFacetManager $facet_manager: The Default Facet Manager.

\Drupal\facets_summary\Processor\ProcessorPluginManager $processor_plugin_manager: The Facets Summary Processor Plugin Manager.

File

modules/facets_summary/src/Form/FacetsSummaryForm.php, line 67

Class

FacetsSummaryForm
Provides a form for configuring the processors of a facet.

Namespace

Drupal\facets_summary\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, FacetSourcePluginManager $facet_source_plugin_manager, DefaultFacetManager $facet_manager, ProcessorPluginManager $processor_plugin_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->facetSourcePluginManager = $facet_source_plugin_manager;
  $this->facetSummaryStorage = $entity_type_manager
    ->getStorage('facets_summary');
  $this->facetManager = $facet_manager;
  $this->processorPluginManager = $processor_plugin_manager;
}