You are here

public function SearchEditForm::__construct in Search API Autocomplete 8

Creates a new SearchEditForm instance.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $suggester_manager: The suggester manager.

\Drupal\search_api_autocomplete\Search\SearchPluginManager $search_plugin_manager: The search plugin manager.

\Psr\Log\LoggerInterface $logger: The logger.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

src/Form/SearchEditForm.php, line 70

Class

SearchEditForm
Provides an edit form for autocomplete search entities.

Namespace

Drupal\search_api_autocomplete\Form

Code

public function __construct(PluginManagerInterface $suggester_manager, SearchPluginManager $search_plugin_manager, LoggerInterface $logger, MessengerInterface $messenger) {
  $this->suggesterManager = $suggester_manager;
  $this->searchPluginManager = $search_plugin_manager;
  $this->logger = $logger;
  $this->messenger = $messenger;
}