function MigrationLookup::createStubRow

Create a stub row source for later import as stub data.

This simple wrapper of the Row constructor allows sub-classing plugins to have more control over the row.

Parameters

array $values: An array of values to add as properties on the object.

array $source_ids: An array containing the IDs of the source using the keys as the field names.

Return value

\Drupal\migrate\Row The stub row.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use the migrate.stub service to create stubs.

See also

https://www.drupal.org/node/3047268

File

core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php, line 321

Class

MigrationLookup
Looks up the value of a property based on a previous migration.

Namespace

Drupal\migrate\Plugin\migrate\process

Code

protected function createStubRow(array $values, array $source_ids) {
    @trigger_error(__METHOD__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the migrate.stub service to create stubs. See https://www.drupal.org/node/3047268', E_USER_DEPRECATED);
    return new Row($values, $source_ids, TRUE);
}

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