You are here

public function AutocompleteService::__construct in Synonyms 2.0.x

AutocompleteService constructor.

File

modules/synonyms_autocomplete/src/SynonymsService/Behavior/AutocompleteService.php, line 61

Class

AutocompleteService
Synonyms behavior service for autocomplete.

Namespace

Drupal\synonyms_autocomplete\SynonymsService\Behavior

Code

public function __construct(KeyValueFactoryInterface $key_value, SelectionPluginManagerInterface $selection_plugin_manager, Connection $database, EntityTypeManagerInterface $entity_type_manager, ProviderService $provider_service) {
  $this->keyValue = $key_value
    ->get('synonyms_entity_autocomplete');
  $this->selectionManager = $selection_plugin_manager;
  $this->database = $database;
  $this->entityTypeManager = $entity_type_manager;
  $this->providerService = $provider_service;
}