You are here

public function SearchApiSearch::__construct in Fast Autocomplete 8

SearchApiSearch constructor.

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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\search_api\Utility\QueryHelperInterface $query_helper: The Search Api query helper service.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

Overrides PluginBase::__construct

File

src/Plugin/Search/SearchApiSearch.php, line 67

Class

SearchApiSearch
Provides a Search API search plugin.

Namespace

Drupal\fac\Plugin\Search

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, QueryHelperInterface $query_helper, TranslationInterface $string_translation) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->queryHelper = $query_helper;
  $this->stringTranslation = $string_translation;
}