You are here

protected function MigrateHelper::createExecutable in Panopoly 8.2

Create a new migrate executable.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration.

Return value

\Drupal\migrate\MigrateExecutableInterface The migrate executable.

2 calls to MigrateHelper::createExecutable()
MigrateHelper::import in modules/panopoly/panopoly_core/src/MigrateHelper.php
Imports the given migrations in order.
MigrateHelper::rollback in modules/panopoly/panopoly_core/src/MigrateHelper.php
Rolls back the given migrations in reverse order.

File

modules/panopoly/panopoly_core/src/MigrateHelper.php, line 61

Class

MigrateHelper
Service with some helper functions for working with migrate.

Namespace

Drupal\panopoly_core

Code

protected function createExecutable(MigrationInterface $migration) {
  return new MigrateExecutable($migration, $this
    ->getMessageObject());
}