You are here

public function QueryString::__construct in Facets 8

Constructs a new instance of the class.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Symfony\Component\HttpFoundation\Request $request: A request object for the current request.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Entity Type Manager.

Throws

\Drupal\facets\Exception\InvalidProcessorException

Overrides UrlProcessorPluginBase::__construct

File

src/Plugin/facets/url_processor/QueryString.php, line 44

Class

QueryString
Query string URL processor.

Namespace

Drupal\facets\Plugin\facets\url_processor

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Request $request, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $eventDispatcher) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $request, $entity_type_manager);
  $this->eventDispatcher = $eventDispatcher;
  $this
    ->initializeActiveFilters();
}