function TestFileTransferWithSettingsForm::factory

Same name in other branches
  1. 9 core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php \Drupal\update_test\TestFileTransferWithSettingsForm::factory()
  2. 8.9.x core/modules/update/tests/modules/update_test/src/TestFileTransferWithSettingsForm.php \Drupal\update_test\TestFileTransferWithSettingsForm::factory()
  3. 10 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 26

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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.