You are here

protected function SearchApiAbstractAlterCallback::isMultiEntityIndex in Search API 7

Determines whether the given index contains multiple types of entities.

Parameters

SearchApiIndex|null $index: (optional) The index to examine. Defaults to the index set for this plugin.

Return value

bool TRUE if the index is a multi-entity index, FALSE otherwise.

11 calls to SearchApiAbstractAlterCallback::isMultiEntityIndex()
SearchApiAlterBundleFilter::alterItems in includes/callback_bundle_filter.inc
Alter items before indexing.
SearchApiAlterBundleFilter::configurationForm in includes/callback_bundle_filter.inc
Implements SearchApiAlterCallbackInterface::configurationForm().
SearchApiAlterBundleFilter::supportsIndex in includes/callback_bundle_filter.inc
Implements SearchApiAlterCallbackInterface::supportsIndex().
SearchApiAlterFileEntityPublic::alterItems in includes/callback_file_entity_public.inc
Alter items before indexing.
SearchApiAlterFileEntityPublic::supportsIndex in includes/callback_file_entity_public.inc
Implements SearchApiAlterCallbackInterface::supportsIndex().

... See full list

File

includes/callback.inc, line 195
Contains base definitions for data alterations.

Class

SearchApiAbstractAlterCallback
Abstract base class for data-alter callbacks.

Code

protected function isMultiEntityIndex(SearchApiIndex $index = NULL) {
  $index = $index ? $index : $this->index;
  return $index
    ->datasource() instanceof SearchApiCombinedEntityDataSourceController;
}