You are here

public function RedirectDeleteMultipleForm::__construct in Redirect 8

Constructs a RedirectDeleteMultiple form object.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.

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

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The String translation.

File

src/Form/RedirectDeleteMultipleForm.php, line 60

Class

RedirectDeleteMultipleForm
Provides a redirect deletion confirmation form.

Namespace

Drupal\redirect\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, EntityTypeManagerInterface $entity_type_manager, AccountInterface $account, TranslationInterface $string_translation) {
  $this->privateTempStoreFactory = $temp_store_factory;
  $this->redirectStorage = $entity_type_manager
    ->getStorage('redirect');
  $this->currentUser = $account;
  $this
    ->setStringTranslation($string_translation);
}