Skip to content
Snippets Groups Projects
Commit efd60311 authored by Aleix Quintana's avatar Aleix Quintana
Browse files

fix #3417645: ($event) must be of type Event

parent ebf0d161
Branches 2.x
No related tags found
1 merge request!1Update EventListener.php
......@@ -3,7 +3,7 @@
namespace Drupal\jts_solr_queries\EventSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\EventDispatcher\Event;
use Drupal\search_api\Event\GatheringPluginInfoEvent;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\search_api\Event\SearchApiEvents;
use Drupal\Core\StringTranslation\StringTranslationTrait;
......@@ -41,10 +41,10 @@ class EventListener implements EventSubscriberInterface {
/**
* Method called when SearchApiEvents::GATHERING_DATA_SOURCES is dispatched.
*
* @param \Symfony\Component\EventDispatcher\Event $event
* The dispatched event.
* @param \Drupal\search_api\Event\GatheringPluginInfoEvent $event
* The type info alter event.
*/
public function dataTypeInfoAlter(Event $event) {
public function dataTypeInfoAlter(GatheringPluginInfoEvent $event) {
$dataTypePluginInfo = &$event->getDefinitions();
if (isset($dataTypePluginInfo['rpt'])) {
// OVERRIDE RPT with RPT_SHAPES.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment