public function SuggestionSearchForm::__construct in Autocomplete Search Suggestions 8.2
Same name and namespace in other branches
- 8 src/Form/SuggestionSearchForm.php \Drupal\suggestion\Form\SuggestionSearchForm::__construct()
- 3.0.x src/Form/SuggestionSearchForm.php \Drupal\suggestion\Form\SuggestionSearchForm::__construct()
Class constructor.
Parameters
\Drupal\Core\Routing\RedirectDestinationInterface $redirect: The redirect destination.
\Drupal\Core\Language\LanguageManager $lang_mgr: The language manager dependency injection.
\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 38
Class
- SuggestionSearchForm
- Ngram search form.
Namespace
Drupal\suggestion\FormCode
public function __construct(RedirectDestinationInterface $redirect, LanguageManager $lang_mgr, PagerManagerInterface $pager_mgr, Connection $dbh) {
$this->dbh = $dbh;
$this->langMgr = $lang_mgr;
$this->pagerMgr = $pager_mgr;
$this->redirect = $redirect;
}