function MigrateIdMapInterface::getRowByDestination

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::getRowByDestination()
  2. 8.9.x core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::getRowByDestination()
  3. 10 core/modules/migrate/src/Plugin/MigrateIdMapInterface.php \Drupal\migrate\Plugin\MigrateIdMapInterface::getRowByDestination()

Retrieves a row by the destination identifiers.

Parameters

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

Return value

array The row(s) of data or an empty array when there is no matching map row.

2 methods override MigrateIdMapInterface::getRowByDestination()
NullIdMap::getRowByDestination in core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php
Retrieves a row by the destination identifiers.
Sql::getRowByDestination in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Retrieves a row by the destination identifiers.

File

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

Class

MigrateIdMapInterface
Defines an interface for migrate ID mappings.

Namespace

Drupal\migrate\Plugin

Code

public function getRowByDestination(array $destination_id_values);

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