public function HostDeleteForm::__construct in http:BL 8
Constructs a HostDeleteForm 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/ HostDeleteForm.php, line 54
Class
- HostDeleteForm
- Provides a form for deleting (and unbanning) a host entity.
Namespace
Drupal\httpbl\FormCode
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;
}