You are here

public function MigrateBatchExecutable::setBatchContext in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8.4 src/MigrateBatchExecutable.php \Drupal\migrate_tools\MigrateBatchExecutable::setBatchContext()

Sets the current batch content so listeners can update the messages.

Parameters

array|\DrushBatchContext $context: The batch context.

File

src/MigrateBatchExecutable.php, line 83

Class

MigrateBatchExecutable
Defines a migrate executable class for batch migrations through UI.

Namespace

Drupal\migrate_tools

Code

public function setBatchContext(&$context) {
  $this->batchContext =& $context;
}