You are here

public function EventListener::queryStringCreated in Facets 8

Event handler for the query string created event.

Parameters

\Drupal\facets\Event\QueryStringCreated $event: The query string created event.

File

tests/facets_events_test/src/EventListener.php, line 28

Class

EventListener
Class EventListener.

Namespace

Drupal\facets_events_test

Code

public function queryStringCreated(QueryStringCreated $event) {
  $event
    ->getQueryParameters()
    ->add([
    'test' => 'fun',
  ]);
}