function MigrateIdMapInterface::lookupDestinationId

Looks up the destination identifier corresponding to a source key.

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

Parameters

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

Return value

array The destination identifier values of the record, or empty on failure.

Deprecated

in drupal:8.1.0 and is removed from drupal:9.0.0. Use lookupDestinationIds() instead.

See also

https://www.drupal.org/node/2725809

2 methods override MigrateIdMapInterface::lookupDestinationId()
NullIdMap::lookupDestinationId in core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php
Looks up the destination identifier corresponding to a source key.
Sql::lookupDestinationId in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Looks up the destination identifier corresponding to a source key.

File

core/modules/migrate/src/Plugin/MigrateIdMapInterface.php, line 281

Class

MigrateIdMapInterface
Defines an interface for migrate ID mappings.

Namespace

Drupal\migrate\Plugin

Code

public function lookupDestinationId(array $source_id_values);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.