Skip to content
Snippets Groups Projects
Commit dc327775 authored by Benjamin Melançon's avatar Benjamin Melançon Committed by Daniel Cothran
Browse files

Issue #3308563 by mlncn: Undefined constant DOMAIN_ACCESS_FIELD with latest dev of Domain module

parent b8fb0401
No related branches found
No related tags found
No related merge requests found
......@@ -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 = [
......
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