public function SolrDocumentFactoryInterface::create in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/SolrDocumentFactoryInterface.php \Drupal\search_api_solr\SolrDocumentFactoryInterface::create()
- 4.x 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()
- SolrDocumentFactory::create in src/
SolrDocumentFactory.php - Creates a SolrDocument data type from a Search API result Item.
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);