You are here

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

Construct the AutobanFormBase.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: An entity type manager interface for the autoban entity type.

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

\Drupal\autoban\Controller\AutobanController $autoban: Autoban object.

File

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

Class

AutobanFormBase
Autoban base form for add and edit.

Namespace

Drupal\autoban\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config, AutobanController $autoban) {
  $this->entityTypeManager = $entity_type_manager;
  $this->config = $config;
  $this->autoban = $autoban;
}