MigrateSkipProcessException is deprecated

Created on 8 July 2025, 7 days ago

Problem/Motivation

The following code :
throw new MigrateSkipProcessException($e->getMessage());

Can produce the warning :
User deprecated function: Drupal\migrate\MigrateSkipProcessException is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. Return TRUE from a process plugin's isPipelineStopped() method to halt further processing on a pipeline. See in Drupal\migrate\MigrateSkipProcessException->__construct() (line 16 of /.../core/modules/migrate/src/MigrateSkipProcessException.php)

Proposed resolution

Replace :
throw new MigrateSkipProcessException("The transformation-only filter $plugin_id was skipped.");

By :

$this->stopPipeline();
return NULL;
🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇦🇺Australia lykyd

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024