MigrateStubInterface.php 635 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\migrate;
  3. /**
  4. * Provides an interface for the migrate stub service.
  5. */
  6. interface MigrateStubInterface {
  7. /**
  8. * Creates a stub.
  9. *
  10. * @param string $migration_id
  11. * The migration to stub.
  12. * @param array $source_ids
  13. * An array of source ids.
  14. * @param array $default_values
  15. * (optional) An array of default values to add to the stub.
  16. *
  17. * @return array|false
  18. * An array of destination ids for the new stub, keyed by destination id
  19. * key, or false if the stub failed.
  20. */
  21. public function createStub($migration_id, array $source_ids, array $default_values = []);
  22. }