You are here

public function NullIdMap::lookupSourceId in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php \Drupal\migrate\Plugin\migrate\id_map\NullIdMap::lookupSourceId()
  2. 9 core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php \Drupal\migrate\Plugin\migrate\id_map\NullIdMap::lookupSourceId()

Looks up the source identifier.

Given a (possibly multi-field) destination identifier value, return the (possibly multi-field) source identifier value mapped to it.

Parameters

array $destination_id_values: The destination identifier keyed values of the record, e.g. ['nid' => 5].

Return value

array The source identifier keyed values of the record, e.g. ['nid' => 5], or an empty array on failure.

Overrides MigrateIdMapInterface::lookupSourceId

File

core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php, line 51

Class

NullIdMap
Defines the null ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

public function lookupSourceId(array $destination_id_values) {
  return [];
}