You are here

public function SearchApiElasticsearchBackend::__construct in Search API Elasticsearch 8

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 BackendPluginBase::__construct

File

src/Plugin/search_api/backend/SearchApiElasticsearchBackend.php, line 33
Contains \Drupal\search_api_elasticsearch\Plugin\search_api\backend\SearchApiElasticsearchBackend.

Class

SearchApiElasticsearchBackend
Plugin annotation @SearchApiBackend( id = "search_api_elasticsearch", label = @Translation("Elasticsearch"), description = @Translation("Use Elasticsearch as a Search API backend.") )

Namespace

Drupal\search_api_elasticsearch\Plugin\search_api\backend

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, FormBuilderInterface $form_builder, ModuleHandlerInterface $module_handler, Config $settings) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->formBuilder = $form_builder;
  $this->moduleHandler = $module_handler;
  $this->searchApiElasticsearchSettings = $settings;
}