You are here

public function HostMultipleWhitelistConfirm::__construct in http:BL 8

Constructs a new HostMultipleWhitelistConfirm form object.

Parameters

\Drupal\user\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $manager: The entity manager.

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

\Drupal\httpbl\Logger\HttpblLogTrapperInterface $logTrapper: A logger arbitration instance.

File

src/Form/HostMultipleWhitelistConfirm.php, line 67

Class

HostMultipleWhitelistConfirm
Provides a multiple host white-listing (and un-banning) confirmation form.

Namespace

Drupal\httpbl\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $manager, BanIpManagerInterface $banManager, HttpblLogTrapperInterface $logTrapper) {
  $this->tempStoreFactory = $temp_store_factory;

  //Get the storage info from the EntityTypeManager.
  $this->storage = $manager
    ->getStorage('host');
  $this->banManager = $banManager;
  $this->logTrapper = $logTrapper;
}