You are here

public function SuggestionSearchForm::__construct in Autocomplete Search Suggestions 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Form/SuggestionSearchForm.php \Drupal\suggestion\Form\SuggestionSearchForm::__construct()
  2. 8 src/Form/SuggestionSearchForm.php \Drupal\suggestion\Form\SuggestionSearchForm::__construct()

Class constructor.

Parameters

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

\Drupal\Core\Pager\PagerManagerInterface $pager_mgr: The language manager dependency injection.

\Drupal\Core\Database\Connection $dbh: The language manager dependency injection.

File

src/Form/SuggestionSearchForm.php, line 34

Class

SuggestionSearchForm
Ngram search form.

Namespace

Drupal\suggestion\Form

Code

public function __construct(RedirectDestinationInterface $redirect, PagerManagerInterface $pager_mgr, Connection $dbh) {
  $this->dbh = $dbh;
  $this->pagerMgr = $pager_mgr;
  $this->redirect = $redirect;
}