public function SearchApiAlterNodeDomainAccess::supportsIndex in Domain Integration (Drupal 7) 8
Same name and namespace in other branches
- 7 modules/domain_integration_search_api/includes/callback_node_domain_access.inc \SearchApiAlterNodeDomainAccess::supportsIndex()
Overrides SearchApiAbstractAlterCallback::supportsIndex().
This plugin only supports indexes containing nodes.
File
- modules/
domain_integration_search_api/ includes/ callback_node_domain_access.inc, line 17 - Contains the SearchApiAlterNodeDomainAccess class.
Class
- SearchApiAlterNodeDomainAccess
- Adds node domain access information to node indexes.
Code
public function supportsIndex(SearchApiIndex $index) {
// Currently only node access is supported.
return $index
->getEntityType() === 'node';
}