drupal_set_message(\Drupal::translation()->translate('The configuration was imported successfully.'));
}
else{
// An error occurred.
// $operations contains the operations that remained unprocessed.
$error_operation=reset($operations);
$message=\Drupal::translation()->translate('An error occurred while processing %error_operation with arguments: @arguments',array('%error_operation'=>$error_operation[0],'@arguments'=>print_r($error_operation[1],TRUE)));