You are here

public function HostForm::__construct in http:BL 8

Constructs a HostForm object with additional services.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Drupal\ban\BanIpManagerInterface $banManager: The Ban manager.

\Drupal\httpbl\Logger\HttpblLogTrapperInterface $logTrapper: The log manager.

\Drupal\Component\Datetime\TimeInterface $time: The time service (for tracking changes).

Overrides ContentEntityForm::__construct

File

src/Form/HostForm.php, line 48

Class

HostForm
Form controller for the host entity Add/Edit form.

Namespace

Drupal\httpbl\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, BanIpManagerInterface $banManager, HttpblLogTrapperInterface $logTrapper, TimeInterface $time = NULL) {
  parent::__construct($entity_repository, NULL, $time);
  $this->banManager = $banManager;
  $this->logTrapper = $logTrapper;
}