$migration_status =
$executable->
import();
} catch (\Exception
$e) { \Drupal::
logger('migrate_drupal_ui'
)->
error($e->
getMessage());
$migration_status = MigrationInterface::RESULT_FAILED;
} switch ($migration_status) { case MigrationInterface::RESULT_COMPLETED:
// Store the number processed in the sandbox.
$context['sandbox'
]['num_processed'
] +=
static::
$numProcessed;
$message =
new PluralTranslatableMarkup( $context['sandbox'
]['num_processed'
], 'Upgraded @migration (processed 1 item total)', 'Upgraded @migration (processed @count items total)',
['@migration' =>
$migration_name]);
$context['sandbox'
]['messages'
][] =
(string) $message;
\Drupal::
logger('migrate_drupal_ui'
)->
notice($message);
$context['sandbox'
]['num_processed'
] = 0;
$context['results'
]['successes'
]++;
// If the completed migration has any follow-up migrations, add them
// to the batch migrations.
// @see onPostImport()
if (!
empty(static::
$followUpMigrations)) {