function content_export_yaml_export_entity_batch_process in Content Export YAML 8
1 string reference to 'content_export_yaml_export_entity_batch_process'
File
- drush/
content_export_yaml.batch.inc, line 23
Code
function content_export_yaml_export_entity_batch_process($info, $context) {
try {
$export = new ContentExport();
$status = $export
->export($info['id'], $info['entity']);
if ($status) {
drush_print('Success exported id = ' . $info['index']);
}
} catch (\Exception $e) {
if (is_object($info['id'])) {
$info['id'] = $info['id']
->id();
}
$message = "Item :" . $info['id'] . " Error: " . $e
->getMessage();
\Drupal::logger("content_export_yaml")
->error($message);
}
}