public function SolrDocument::setSolrDocumentFactory in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/datasource/SolrDocument.php \Drupal\search_api_solr\Plugin\search_api\datasource\SolrDocument::setSolrDocumentFactory()
- 4.x src/Plugin/search_api/datasource/SolrDocument.php \Drupal\search_api_solr\Plugin\search_api\datasource\SolrDocument::setSolrDocumentFactory()
Sets the Solr document factory.
Parameters
\Drupal\search_api_solr\SolrDocumentFactoryInterface $factory: The new entity field manager.
Return value
$this
File
- src/
Plugin/ search_api/ datasource/ SolrDocument.php, line 66
Class
- SolrDocument
- Represents a datasource which exposes external Solr Documents.
Namespace
Drupal\search_api_solr\Plugin\search_api\datasourceCode
public function setSolrDocumentFactory(SolrDocumentFactoryInterface $factory) {
$this->solrDocumentFactory = $factory;
return $this;
}