protected function ExtractorQueue::getExtractorPlugin in Search API attachments 8
Same name and namespace in other branches
- 9.0.x src/Plugin/QueueWorker/ExtractorQueue.php \Drupal\search_api_attachments\Plugin\QueueWorker\ExtractorQueue::getExtractorPlugin()
Get the extractor plugin.
Return value
object The plugin.
Throws
\Drupal\Component\Plugin\Exception\PluginException
1 call to ExtractorQueue::getExtractorPlugin()
- ExtractorQueue::processItem in src/
Plugin/ QueueWorker/ ExtractorQueue.php - Works on a single queue item.
File
- src/
Plugin/ QueueWorker/ ExtractorQueue.php, line 100
Class
- ExtractorQueue
- Processes Tasks for Search API Attachments.
Namespace
Drupal\search_api_attachments\Plugin\QueueWorkerCode
protected function getExtractorPlugin() {
// Get extractor configuration.
$config = \Drupal::config(FilesExtractor::CONFIGNAME);
$extractor_plugin_id = $config
->get('extraction_method');
$configuration = $config
->get($extractor_plugin_id . '_configuration');
// Get extractor plugin.
return $this->textExtractorPluginManager
->createInstance($extractor_plugin_id, $configuration);
}