function MigrateIdMapInterface::lookupSourceId
Same name in other branches
- 9 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::lookupSourceId()
- 8.9.x core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::lookupSourceId()
- 10 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::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.
2 methods override MigrateIdMapInterface::lookupSourceId()
- NullIdMap::lookupSourceId in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ NullIdMap.php - Looks up the source identifier.
- Sql::lookupSourceId in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php - Looks up the source identifier.
File
-
core/
modules/ migrate/ src/ Plugin/ MigrateIdMapInterface.php, line 244
Class
- MigrateIdMapInterface
- Defines an interface for migrate ID mappings.
Namespace
Drupal\migrate\PluginCode
public function lookupSourceId(array $destination_id_values);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.