public function FacetSettingsForm::__construct in Facets 8
Constructs a FacetForm 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\Processor\ProcessorPluginManager $processor_plugin_manager: The plugin manager for processors.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator.
File
- src/
Form/ FacetSettingsForm.php, line 57
Class
- FacetSettingsForm
- Provides a form for creating and editing facets.
Namespace
Drupal\facets\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, FacetSourcePluginManager $facet_source_plugin_manager, ProcessorPluginManager $processor_plugin_manager, ModuleHandlerInterface $module_handler, UrlGeneratorInterface $url_generator) {
$this->facetStorage = $entity_type_manager
->getStorage('facets_facet');
$this->facetSourcePluginManager = $facet_source_plugin_manager;
$this->processorPluginManager = $processor_plugin_manager;
$this->moduleHandler = $module_handler;
$this->urlGenerator = $url_generator;
}