public function WebformCommands::drush_webform_import in Webform 8.5
Same name and namespace in other branches
- 6.x src/Commands/WebformCommands.php \Drupal\webform\Commands\WebformCommands::drush_webform_import()
Imports webform submissions from a CSV file.
@command webform:import
@option skip_validation Skip form validation. @option treat_warnings_as_errors Treat all warnings as errors. @option entity-type The entity type to which this submission was submitted from. @option entity-id The ID of the entity of which this webform submission was submitted from. @aliases wfi,webform-import
Parameters
$webform The webform ID you want to import (required unless --entity-type and --entity-id are specified):
$import_uri The path or URI for the CSV file to be imported.:
File
- src/
Commands/ WebformCommands.php, line 92
Class
- WebformCommands
- Webform commands for Drush 9.x.
Namespace
Drupal\webform\CommandsCode
public function drush_webform_import($webform = NULL, $import_uri = NULL, array $options = [
'skip_validation' => NULL,
'treat_warnings_as_errors' => NULL,
'entity-type' => NULL,
'entity-id' => NULL,
]) {
$this->cliService
->drush_webform_import($webform, $import_uri);
}