You are here

public function FilesExtractor::__construct in Search API attachments 8

Same name and namespace in other branches
  1. 9.0.x src/Plugin/search_api/processor/FilesExtractor.php \Drupal\search_api_attachments\Plugin\search_api\processor\FilesExtractor::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides IndexPluginBase::__construct

File

src/Plugin/search_api/processor/FilesExtractor.php, line 126

Class

FilesExtractor
Provides file fields processor.

Namespace

Drupal\search_api_attachments\Plugin\search_api\processor

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, TextExtractorPluginManager $text_extractor_plugin_manager, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, KeyValueFactoryInterface $key_value, ModuleHandlerInterface $module_handler, FieldsHelperInterface $field_helper, ExtractFileValidator $extractFileValidator, LoggerInterface $logger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->textExtractorPluginManager = $text_extractor_plugin_manager;
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->keyValue = $key_value;
  $this->moduleHandler = $module_handler;
  $this->fieldHelper = $field_helper;
  $this->extractFileValidator = $extractFileValidator;
  $this->logger = $logger;
}