Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
domain_access_search_api
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
domain_access_search_api
Commits
dc327775
Commit
dc327775
authored
2 years ago
by
Benjamin Melançon
Committed by
Daniel Cothran
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3308563
by mlncn: Undefined constant DOMAIN_ACCESS_FIELD with latest dev of Domain module
parent
b8fb0401
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
domain_access_search_api.module
+2
-1
2 additions, 1 deletion
domain_access_search_api.module
with
2 additions
and
1 deletion
domain_access_search_api.module
+
2
−
1
View file @
dc327775
...
...
@@ -6,6 +6,7 @@
*/
use
Drupal\search_api
\Entity\Index
;
use
Drupal\domain_access
\DomainAccessManagerInterface
;
/**
* Implements hook_views_data_alter().
...
...
@@ -29,7 +30,7 @@ function domain_access_search_api_views_data_alter(array &$data) {
];
// Since domains are not stored in the database, relationships cannot
// be used.
unset
(
$data
[
$table
][
DOMAIN_ACCESS_FIELD
][
'relationship'
]);
unset
(
$data
[
$table
][
DomainAccessManagerInterface
::
DOMAIN_ACCESS_FIELD
][
'relationship'
]);
}
catch
(
\Exception
$e
)
{
$args
=
[
...
...
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