You are here

public function SuggestionFactory::__construct in Search API Autocomplete 8

Constructs a SuggestionFactory object.

Parameters

string|null $user_input: (optional) The keywords input by the user so far.

File

src/Suggestion/SuggestionFactory.php, line 27

Class

SuggestionFactory
Provides factory methods for simpler creation of autocomplete suggestions.

Namespace

Drupal\search_api_autocomplete\Suggestion

Code

public function __construct($user_input = NULL) {
  $this->userInput = $user_input;
}