function system_test_filetransfer_info

Same name in other branches
  1. 7.x modules/simpletest/tests/system_test.module \system_test_filetransfer_info()
  2. 9 core/modules/system/tests/modules/system_test/system_test.module \system_test_filetransfer_info()
  3. 8.9.x core/modules/system/tests/modules/system_test/system_test.module \system_test_filetransfer_info()
  4. 11.x core/modules/system/tests/modules/system_test/system_test.module \system_test_filetransfer_info()

Implements hook_filetransfer_info().

File

core/modules/system/tests/modules/system_test/system_test.module, line 130

Code

function system_test_filetransfer_info() {
    return [
        'system_test' => [
            'title' => t('System Test FileTransfer'),
            'class' => 'Drupal\\system_test\\MockFileTransfer',
            'weight' => -10,
        ],
    ];
}

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