interface MigrateStubInterface (View source)

Provides an interface for the migrate stub service.

Methods

array|false
createStub(string $migration_id, array $source_ids, array $default_values = [])

Creates a stub.

Details

array|false createStub(string $migration_id, array $source_ids, array $default_values = [])

Creates a stub.

Parameters

string $migration_id

The migration to stub.

array $source_ids

An array of source ids.

array $default_values

(optional) An array of default values to add to the stub.

Return Value

array|false

An array of destination ids for the new stub, keyed by destination id key, or false if the stub failed.