You are here

public static function AutobanBanForm::create in Automatic IP ban (Autoban) 8

Factory method for AutobanBanForm.

Overrides FormBase::create

File

src/Form/AutobanBanForm.php, line 49

Class

AutobanBanForm
Displays banned IP addresses.

Namespace

Drupal\autoban\Form

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('entity_type.manager'), $container
    ->get('autoban'));
}