You are here

public function HostMultipleRefreshConfirm::__construct in http:BL 8

Constructs a new HostMultipleRefreshConfirm form object.

Parameters

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

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

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

File

src/Form/HostMultipleRefreshConfirm.php, line 57

Class

HostMultipleRefreshConfirm
Provides a multiple host expiry refresh confirmation form.

Namespace

Drupal\httpbl\Form

Code

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

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