You are here

public function FileTestSaveUploadFromForm::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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;
}