function MigrationInterface::interruptMigration

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/MigrationInterface.php \Drupal\migrate\Plugin\MigrationInterface::interruptMigration()
  2. 8.9.x core/modules/migrate/src/Plugin/MigrationInterface.php \Drupal\migrate\Plugin\MigrationInterface::interruptMigration()
  3. 10 core/modules/migrate/src/Plugin/MigrationInterface.php \Drupal\migrate\Plugin\MigrationInterface::interruptMigration()

Sets the migration status as interrupted with a given result code.

Parameters

int $result: One of the MigrationInterface::RESULT_* constants.

1 method overrides MigrationInterface::interruptMigration()
Migration::interruptMigration in core/modules/migrate/src/Plugin/Migration.php
Sets the migration status as interrupted with a given result code.

File

core/modules/migrate/src/Plugin/MigrationInterface.php, line 206

Class

MigrationInterface
Interface for migrations.

Namespace

Drupal\migrate\Plugin

Code

public function interruptMigration($result);

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