function UpdateTestHooks::filetransferInfo
Implements hook_filetransfer_info().
File
-
core/
modules/ update/ tests/ modules/ update_test/ src/ Hook/ UpdateTestHooks.php, line 68
Class
- UpdateTestHooks
- Hook implementations for update_test.
Namespace
Drupal\update_test\HookCode
public function filetransferInfo() {
// Define a test file transfer method, to ensure that there will always be at
// least one method available in the user interface (regardless of the
// environment in which the update manager tests are run).
return [
'system_test' => [
'title' => t('Update Test FileTransfer'),
'class' => 'Drupal\\update_test\\TestFileTransferWithSettingsForm',
'weight' => -20,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.