interface SolrDocumentFactoryInterface in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrDocumentFactoryInterface.php \Drupal\search_api_solr\SolrDocumentFactoryInterface
- 8.2 src/SolrDocumentFactoryInterface.php \Drupal\search_api_solr\SolrDocumentFactoryInterface
Defines an interface for Solr Document factories.
Hierarchy
- interface \Drupal\search_api_solr\SolrDocumentFactoryInterface
Expanded class hierarchy of SolrDocumentFactoryInterface
All classes that implement SolrDocumentFactoryInterface
1 file declares its use of SolrDocumentFactoryInterface
- SolrDocument.php in src/
Plugin/ search_api/ datasource/ SolrDocument.php
File
- src/
SolrDocumentFactoryInterface.php, line 10
Namespace
Drupal\search_api_solrView source
interface SolrDocumentFactoryInterface {
/**
* Creates a SolrDocument data type from a Search API result Item.
*
* @param \Drupal\search_api\Item\ItemInterface $item
* The result item to be wrapped with the data type class.
*
* @return \Drupal\search_api_solr\Plugin\DataType\SolrDocument
* The wrapped item.
*/
public function create(ItemInterface $item);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SolrDocumentFactoryInterface:: |
public | function | Creates a SolrDocument data type from a Search API result Item. | 1 |