You are here

interface SolrDocumentFactoryInterface in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/SolrDocumentFactoryInterface.php \Drupal\search_api_solr\SolrDocumentFactoryInterface
  2. 4.x src/SolrDocumentFactoryInterface.php \Drupal\search_api_solr\SolrDocumentFactoryInterface

Defines an interface for Solr Document factories.

Hierarchy

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_solr
View 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

Namesort descending Modifiers Type Description Overrides
SolrDocumentFactoryInterface::create public function Creates a SolrDocument data type from a Search API result Item. 1