You are here

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

Factory method for AutobanFormBase.

Overrides FormBase::create

File

src/Form/AutobanFormBase.php, line 77
Class AutobanFormBase.

Class

AutobanFormBase
Autoban base form for add and edit.

Namespace

Drupal\autoban\Form

Code

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