function Sql::lookupDestinationId

Overrides MigrateIdMapInterface::lookupDestinationId

File

core/modules/migrate/src/Plugin/migrate/id_map/Sql.php, line 548

Class

Sql
Defines the sql based ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

public function lookupDestinationId(array $source_id_values) {
    @trigger_error(__NAMESPACE__ . '\\Sql::lookupDestinationId() is deprecated in drupal:8.1.0 and is removed from drupal:9.0.0. Use Sql::lookupDestinationIds() instead. See https://www.drupal.org/node/2725809', E_USER_DEPRECATED);
    $results = $this->lookupDestinationIds($source_id_values);
    return $results ? reset($results) : [];
}

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