public function SolrDocumentFactoryInterface::create in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrDocumentFactoryInterface.php \Drupal\search_api_solr\SolrDocumentFactoryInterface::create()
- 8.2 src/SolrDocumentFactoryInterface.php \Drupal\search_api_solr\SolrDocumentFactoryInterface::create()
Creates a SolrDocument data type from a Search API result Item.
Parameters
\Drupal\search_api\Item\ItemInterface $item: The result item to be wrapped with the data type class.
Return value
\Drupal\search_api_solr\Plugin\DataType\SolrDocument The wrapped item.
1 method overrides SolrDocumentFactoryInterface::create()
File
- src/
SolrDocumentFactoryInterface.php, line 21
Class
- SolrDocumentFactoryInterface
- Defines an interface for Solr Document factories.
Namespace
Drupal\search_api_solrCode
public function create(ItemInterface $item);