You are here

public function SearchLogClearDataForm::__construct in Search Log 8

Constructs a \Drupal\system\ConfirmFormBase object.

Parameters

\Drupal\Core\Database\Connection $database: The database connection service.

File

src/Form/SearchLogClearDataForm.php, line 37

Class

SearchLogClearDataForm
Defines a confirmation form to confirm deletion of search logs.

Namespace

Drupal\search_log\Form

Code

public function __construct(Connection $database, MessengerInterface $messenger) {
  $this->database = $database;
  $this->messenger = $messenger;
}