public static function SolrDocumentDeriver::create in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/DataType/Deriver/SolrDocumentDeriver.php \Drupal\search_api_solr\Plugin\DataType\Deriver\SolrDocumentDeriver::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- src/
Plugin/ DataType/ Deriver/ SolrDocumentDeriver.php, line 41
Class
- SolrDocumentDeriver
- Provides data type plugins for each index.
Namespace
Drupal\search_api_solr\Plugin\DataType\DeriverCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($base_plugin_id, $container
->get('entity_type.manager'));
}