function MigrateIdMapInterface::lookupDestinationIds
Same name in other branches
- 9 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::lookupDestinationIds()
- 8.9.x core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::lookupDestinationIds()
- 10 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::lookupDestinationIds()
Looks up the destination identifiers corresponding to a source key.
This can look up a subset of source keys if only some are provided, and will return all destination keys that match.
Parameters
array $source_id_values: The source identifier keyed values of the records, e.g. ['nid' => 5]. If un-keyed, the first count($source_id_values) keys will be assumed.
Return value
array An array of arrays of destination identifier values.
Throws
\Drupal\migrate\MigrateException Thrown when $source_id_values contains unknown keys, or is the wrong length.
2 methods override MigrateIdMapInterface::lookupDestinationIds()
- NullIdMap::lookupDestinationIds in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ NullIdMap.php - Sql::lookupDestinationIds in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php
File
-
core/
modules/ migrate/ src/ Plugin/ MigrateIdMapInterface.php, line 263
Class
- MigrateIdMapInterface
- Defines an interface for migrate ID mappings.
Namespace
Drupal\migrate\PluginCode
public function lookupDestinationIds(array $source_id_values);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.