Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jts_solr_queries
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jts_solr_queries
Commits
efd60311
Commit
efd60311
authored
1 year ago
by
Aleix Quintana
Browse files
Options
Downloads
Patches
Plain Diff
fix
#3417645
: ($event) must be of type Event
parent
ebf0d161
Branches
2.x
No related tags found
1 merge request
!1
Update EventListener.php
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/EventSubscriber/EventListener.php
+4
-4
4 additions, 4 deletions
src/EventSubscriber/EventListener.php
with
4 additions
and
4 deletions
src/EventSubscriber/EventListener.php
+
4
−
4
View file @
efd60311
...
...
@@ -3,7 +3,7 @@
namespace
Drupal\jts_solr_queries\EventSubscriber
;
use
Symfony\Component\EventDispatcher\EventSubscriberInterface
;
use
Symfony\Component
\Event
Disp
at
c
her
\
Event
;
use
Drupal\search_api
\Event
\G
ather
ingPluginInfo
Event
;
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
\Event
Disp
at
c
her
\
Event $event
* The
dispatched
event.
* @param \
Drupal\search_api
\Event
\G
ather
ingPluginInfo
Event $event
* The
type info alter
event.
*/
public
function
dataTypeInfoAlter
(
Event
$event
)
{
public
function
dataTypeInfoAlter
(
GatheringPluginInfo
Event
$event
)
{
$dataTypePluginInfo
=
&
$event
->
getDefinitions
();
if
(
isset
(
$dataTypePluginInfo
[
'rpt'
]))
{
// OVERRIDE RPT with RPT_SHAPES.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment