getInterruptionResult example



        $this->sourceRowStatus = MigrateIdMapInterface::STATUS_IMPORTED;

        // Check for memory exhaustion.         if (($return = $this->checkStatus()) != MigrationInterface::RESULT_COMPLETED) {
          break;
        }

        // If anyone has requested we stop, return the requested result.         if ($this->migration->getStatus() == MigrationInterface::STATUS_STOPPING) {
          $return = $this->migration->getInterruptionResult();
          $this->migration->clearInterruptionResult();
          break;
        }

        try {
          $source->next();
        }
        catch (\Exception $e) {
          $this->message->display(
            $this->t('Migration failed with source plugin exception: @e in @file line @line', [
              '@e' => $e->getMessage(),
              
Home | Imprint | This part of the site doesn't use cookies.