public function SmartSql::getRowByDestination in Smart SQL ID Map 1.1.x
Overrides Sql::getRowByDestination
See also
File
- src/
Plugin/ migrate/ id_map/ SmartSql.php, line 48
Class
- SmartSql
- A smart, sql based ID map.
Namespace
Drupal\smart_sql_idmap\Plugin\migrate\id_mapCode
public function getRowByDestination(array $destination_id_values) {
$missing_destination_keys = array_diff(array_keys($this
->destinationIdFields()), array_keys($destination_id_values));
// Fix for https://drupal.org/i/3227549.
$result = $missing_destination_keys ? NULL : parent::getRowByDestination($destination_id_values);
// Fix for https://drupal.org/i/3227549 and workaround for
// https://drupal.org/i/3227660.
return $result ? $result : [
'rollback_action' => 99999,
];
}