You are here

protected function SearchApiSolrBackend::hasIndexJustSolrDocumentDatasource in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::hasIndexJustSolrDocumentDatasource()

Returns whether the index only contains "solr_document" datasources.

Parameters

\Drupal\search_api\IndexInterface $index: The Search API index entity.

Return value

bool TRUE if the index only contains "solr_document" datasources, FALSE otherwise.

File

src/Plugin/search_api/backend/SearchApiSolrBackend.php, line 2102

Class

SearchApiSolrBackend
Apache Solr backend for search api.

Namespace

Drupal\search_api_solr\Plugin\search_api\backend

Code

protected function hasIndexJustSolrDocumentDatasource(IndexInterface $index) {
  return Utility::hasIndexJustSolrDocumentDatasource($index);
}