public function ContentSynchronizerCommands::createAndLaunchImport in Content Synchronizer 3.x
Launch the import of the import entity ID.
@option publish Autopublish imported content : publish|unpublish @option update Update stategy : systematic|if_recent|no_update
@command content:synchronizer-launch-import @aliases cscli
Parameters
string $absolutePath: The import id.
array $options: An associative array of options whose values come from cli, aliases, config, etc.
Throws
\Exception
File
- src/
Commands/ ContentSynchronizerCommands.php, line 219
Class
- ContentSynchronizerCommands
- A Drush commandfile.
Namespace
Drupal\content_synchronizer\CommandsCode
public function createAndLaunchImport($absolutePath = NULL, array $options = [
'publish' => FALSE,
'update' => FALSE,
]) {
if ($import = $this
->createImport($absolutePath)) {
$this
->launchImport($import
->id(), $options);
}
}