Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MigrateLookupInterface.php

function MigrateLookupInterface::lookup

Retrieves destination ids from a migration lookup.

Parameters

string|string[] $migration_ids: An array of migration plugin IDs to look up, or a single ID as a string.

array $source_id_values: An array of source id values.

Return value

array An array of arrays of destination ids, or an empty array if none were found.

Throws

\Drupal\Component\Plugin\Exception\PluginException Thrown by the migration plugin manager on error, or if the migration(s) cannot be found.

\Drupal\migrate\MigrateException Thrown when $source_id_values contains unknown keys, or is the wrong length.

File

core/modules/migrate/src/MigrateLookupInterface.php, line 31

Class

MigrateLookupInterface
Provides an interface for the migration lookup service.

Namespace

Drupal\migrate

Code

public function lookup($migration_ids, array $source_id_values);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal