You are here

public function TextExtractorPluginBase::__construct in Search API attachments 8

Same name and namespace in other branches
  1. 9.0.x src/TextExtractorPluginBase.php \Drupal\search_api_attachments\TextExtractorPluginBase::__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 PluginBase::__construct

2 calls to TextExtractorPluginBase::__construct()
SolrExtractor::__construct in src/Plugin/search_api_attachments/SolrExtractor.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
TikaServerExtractor::__construct in src/Plugin/search_api_attachments/TikaServerExtractor.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
2 methods override TextExtractorPluginBase::__construct()
SolrExtractor::__construct in src/Plugin/search_api_attachments/SolrExtractor.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
TikaServerExtractor::__construct in src/Plugin/search_api_attachments/TikaServerExtractor.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/TextExtractorPluginBase.php, line 60

Class

TextExtractorPluginBase
Base class for plugins able to extract file content.

Namespace

Drupal\search_api_attachments

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ConfigFactoryInterface $config_factory, StreamWrapperManagerInterface $stream_wrapper_manager, MimeTypeGuesserInterface $mime_type_guesser, MessengerInterface $messenger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->mimeTypeGuesser = $mime_type_guesser;
  $this->messenger = $messenger;
}