Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
facets-3310857
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
facets-3310857
Commits
a941c922
Commit
a941c922
authored
3 years ago
by
Markus Kalkbrenner
Committed by
Joris Vercammen
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3199156
by mkalkbrenner: Drupal site install from existing config is broken
parent
5ef2c7c3
No related branches found
Branches containing commit
Tags
8.x-1.7
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/EventSubscriber/SearchApiSubscriber.php
+6
-0
6 additions, 0 deletions
src/EventSubscriber/SearchApiSubscriber.php
with
6 additions
and
0 deletions
src/EventSubscriber/SearchApiSubscriber.php
+
6
−
0
View file @
a941c922
...
...
@@ -49,6 +49,12 @@ class SearchApiSubscriber implements EventSubscriberInterface {
* {@inheritdoc}
*/
public
static
function
getSubscribedEvents
()
{
// Workaround to avoid a fatal error during site install from existing config.
// @see https://www.drupal.org/project/facets/issues/3199156
if
(
!
class_exists
(
'\Drupal\search_api\Event\SearchApiEvents'
,
TRUE
))
{
return
[];
}
return
[
SearchApiEvents
::
QUERY_PRE_EXECUTE
=>
'queryAlter'
,
];
...
...
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