You are here

public function IndexOverviewForm::__construct in Search API Autocomplete 8

Creates a new AutocompleteSearchAdminOverview instance.

Parameters

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

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

\Drupal\search_api_autocomplete\Utility\PluginHelperInterface $plugin_helper: The plugin helper.

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

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination.

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

File

src/Form/IndexOverviewForm.php, line 83

Class

IndexOverviewForm
Defines the overview of all search autocompletion configurations.

Namespace

Drupal\search_api_autocomplete\Form

Code

public function __construct(PluginManagerInterface $suggester_manager, SearchPluginManager $search_plugin_manager, PluginHelperInterface $plugin_helper, EntityTypeManagerInterface $entity_type_manager, RedirectDestinationInterface $redirect_destination, MessengerInterface $messenger) {
  $this->suggesterManager = $suggester_manager;
  $this->searchPluginManager = $search_plugin_manager;
  $this->pluginHelper = $plugin_helper;
  $this->entityTypeManager = $entity_type_manager;
  $this->redirectDestination = $redirect_destination;
  $this->messenger = $messenger;
}