public function ActionsForm::copyLocalSubmitForm in S3 File System 4.0.x
Same name and namespace in other branches
- 8.3 src/Form/ActionsForm.php \Drupal\s3fs\Form\ActionsForm::copyLocalSubmitForm()
Submits the form.
Parameters
array $form: Array that contains the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
Form/ ActionsForm.php, line 319
Class
- ActionsForm
- Defines an actions form.
Namespace
Drupal\s3fs\FormCode
public function copyLocalSubmitForm(array &$form, FormStateInterface $form_state) {
$s3fs_storage = $form_state
->get('s3fs');
$config = $s3fs_storage['config'];
$scheme = $s3fs_storage['scheme'];
$uploadOptions = [
'upload_conditions' => $form_state
->get('upload_conditions'),
];
\Drupal::service('s3fs.file_migration_batch')
->execute($config, $scheme, $uploadOptions);
}