public function FacetsSummarySettingsForm::__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.
\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator.
File
- modules/
facets_summary/ src/ Form/ FacetsSummarySettingsForm.php, line 72
Class
- FacetsSummarySettingsForm
- Provides a form for configuring the processors of a facet.
Namespace
Drupal\facets_summary\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, FacetSourcePluginManager $facet_source_plugin_manager, DefaultFacetManager $facet_manager, ProcessorPluginManager $processor_plugin_manager, BlockManagerInterface $block_manager, UrlGeneratorInterface $url_generator) {
$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;
$this->blockManager = $block_manager;
$this->urlGenerator = $url_generator;
}