You are here

public function SolrDocumentDeriver::__construct in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/DataType/Deriver/SolrDocumentDeriver.php \Drupal\search_api_solr\Plugin\DataType\Deriver\SolrDocumentDeriver::__construct()

SolrDocumentDeriver constructor.

Parameters

string $base_plugin_id: Base plugin ID.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.

File

src/Plugin/DataType/Deriver/SolrDocumentDeriver.php, line 56

Class

SolrDocumentDeriver
Provides data type plugins for each index.

Namespace

Drupal\search_api_solr\Plugin\DataType\Deriver

Code

public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_type_manager) {
  $this->basePluginId = $base_plugin_id;
  $this->entityTypeManager = $entity_type_manager;
}