You are here

public function AdvbanSearchForm::__construct in Advanced ban 8

Constructs AdvbanSearch form.

Parameters

\Drupal\advban\AdvbanIpManager $ip_manager: Store AdvbanIpManager manager.

\Drupal\Core\Datetime\DateFormatter $dateFormatter: Store DateFormatter manager.

\Drupal\Component\Datetime\Time $time: The time service.

File

src/Form/AdvbanSearchForm.php, line 49

Class

AdvbanSearchForm
Search banned IP addresses.

Namespace

Drupal\advban\Form

Code

public function __construct(AdvbanIpManager $ip_manager, DateFormatter $dateFormatter, Time $time) {
  $this->ipManager = $ip_manager;
  $this->dateFormatter = $dateFormatter;
  $this->time = $time;
}