You are here

public function FacetForm::__construct in Facets 8

Constructs an FacetDisplayForm object.

Parameters

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

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

\Drupal\facets\Widget\WidgetPluginManager $widget_plugin_manager: The plugin manager for widgets.

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

\Drupal\facets\FacetManager\DefaultFacetManager $facets_manager: The facet manager.

File

src/Form/FacetForm.php, line 77

Class

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

Namespace

Drupal\facets\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ProcessorPluginManager $processor_plugin_manager, WidgetPluginManager $widget_plugin_manager, FacetSourcePluginManager $facet_source_plugin_manager, DefaultFacetManager $facets_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->processorPluginManager = $processor_plugin_manager;
  $this->widgetPluginManager = $widget_plugin_manager;
  $this->facetSourcePluginManager = $facet_source_plugin_manager;
  $this->facetsManager = $facets_manager;
}