class MigrateLookup implements MigrateLookupInterface (View source)

Provides a migration lookup service.

Properties

protected MigrationPluginManagerInterface $migrationPluginManager

The migration plugin manager.

Methods

__construct(MigrationPluginManagerInterface $migration_plugin_manager)

Constructs a MigrateLookup object.

array
lookup($migration_id, array $source_id_values)

Retrieves destination ids from a migration lookup.

array
doLookup(MigrationInterface $migration, array $source_id_values)

Performs a lookup.

Details

__construct(MigrationPluginManagerInterface $migration_plugin_manager)

Constructs a MigrateLookup object.

Parameters

MigrationPluginManagerInterface $migration_plugin_manager

The migration plugin manager.

array lookup($migration_id, array $source_id_values)

Retrieves destination ids from a migration lookup.

Parameters

$migration_id
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.

Exceptions

PluginException
MigrateException

protected array doLookup(MigrationInterface $migration, array $source_id_values)

Performs a lookup.

Parameters

MigrationInterface $migration

The migration upon which to perform the lookup.

array $source_id_values

The source ID values to look up.

Return Value

array

An array of arrays of destination identifier values.

Exceptions

MigrateException