You are here

public function AutocompleteService::__construct in Synonyms 8

AutocompleteService constructor.

File

src/SynonymsService/Behavior/AutocompleteService.php, line 70

Class

AutocompleteService
Synonyms behavior service for autocomplete.

Namespace

Drupal\synonyms\SynonymsService\Behavior

Code

public function __construct(KeyValueFactoryInterface $key_value, SelectionPluginManagerInterface $selection_plugin_manager, BehaviorService $behavior_service, Connection $database, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer) {
  $this->keyValue = $key_value
    ->get('synonyms_entity_autocomplete');
  $this->selectionManager = $selection_plugin_manager;
  $this->behaviorService = $behavior_service;
  $this->database = $database;
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
}