You are here

public static function TestFileTransferWithSettingsForm::factory in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php \Drupal\update_test\TestFileTransferWithSettingsForm::factory()

Returns a Drupal\update_test\TestFileTransferWithSettingsForm object.

Return value

static A new Drupal\update_test\TestFileTransferWithSettingsForm object.

Overrides Local::factory

File

core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php, line 24

Class

TestFileTransferWithSettingsForm
Provides an object to test the settings form functionality.

Namespace

Drupal\update_test

Code

public static function factory($jail, $settings) {
  return new static($jail, \Drupal::service('file_system'));
}