function MockFileTransfer::factory

Same name in other branches
  1. 9 core/modules/system/tests/modules/system_test/src/MockFileTransfer.php \Drupal\system_test\MockFileTransfer::factory()
  2. 10 core/modules/system/tests/modules/system_test/src/MockFileTransfer.php \Drupal\system_test\MockFileTransfer::factory()
  3. 11.x core/modules/system/tests/modules/system_test/src/MockFileTransfer.php \Drupal\system_test\MockFileTransfer::factory()

Returns a Drupal\system_test\MockFileTransfer object.

Return value

\Drupal\system_test\MockFileTransfer A new Drupal\system_test\MockFileTransfer object.

File

core/modules/system/tests/modules/system_test/src/MockFileTransfer.php, line 16

Class

MockFileTransfer
Mock FileTransfer object to test the settings form functionality.

Namespace

Drupal\system_test

Code

public static function factory() {
    return new MockFileTransfer();
}

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