You are here

public function AdvbanAdmin::__construct in Advanced ban 8

Constructs a new AdvbanAdmin object.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config: Store ConfigFactoryInterface manager.

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

File

src/Form/AdvbanAdmin.php, line 51

Class

AdvbanAdmin
Displays banned IP addresses.

Namespace

Drupal\advban\Form

Code

public function __construct(AdvbanIpManagerInterface $ip_manager, ConfigFactoryInterface $config, DateFormatter $dateFormatter) {
  $this->ipManager = $ip_manager;
  $this->config = $config;
  $this->dateFormatter = $dateFormatter;
}