You are here

public function FileTestSaveUploadFromForm::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php \Drupal\file_test\Form\FileTestSaveUploadFromForm::__construct()
  2. 10 core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php \Drupal\file_test\Form\FileTestSaveUploadFromForm::__construct()

Constructs a FileTestSaveUploadFromForm object.

Parameters

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php, line 39

Class

FileTestSaveUploadFromForm
File test form class.

Namespace

Drupal\file_test\Form

Code

public function __construct(StateInterface $state, MessengerInterface $messenger) {
  $this->state = $state;
  $this->messenger = $messenger;
}