Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!5954
Apply patch from Issue
#3365895
, Comment
#9
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Apply patch from Issue
#3365895
, Comment
#9
issue/drupal-3365895:3365895-subprocess-skip-internal-row
into
11.x
Overview
0
Commits
1
Pipelines
1
Changes
2
Closed
Apply patch from Issue #3365895, Comment #9
Benji Fisher
requested to merge
issue/drupal-3365895:3365895-subprocess-skip-internal-row
into
11.x
Dec 26, 2023
Overview
0
Commits
1
Pipelines
1
Changes
2
Closes
#3365895
0
0
Merge request reports
Compare
11.x
11.x (base)
and
latest version
latest version
8e71badc
1 commit,
Dec 26, 2023
2 files
+
151
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
core/modules/migrate/src/Plugin/migrate/process/SubProcess.php
+
7
−
1
View file @ 8e71badc
Edit in single-file editor
Open in Web IDE
Show full file
@@ -3,6 +3,7 @@
namespace
Drupal\migrate\Plugin\migrate\process
;
use
Drupal\migrate\MigrateException
;
use
Drupal\migrate\MigrateSkipRowException
;
use
Drupal\migrate\ProcessPluginBase
;
use
Drupal\migrate\MigrateExecutableInterface
;
use
Drupal\migrate\Row
;
@@ -208,7 +209,12 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
throw
new
MigrateException
(
sprintf
(
"Input array should hold elements of type array, instead element was of type '%s'"
,
gettype
(
$new_value
)));
}
$new_row
=
new
Row
(
$new_value
+
$source
);
$migrate_executable
->
processRow
(
$new_row
,
$this
->
configuration
[
'process'
]);
try
{
$migrate_executable
->
processRow
(
$new_row
,
$this
->
configuration
[
'process'
]);
}
catch
(
MigrateSkipRowException
$e
)
{
continue
;
}
$destination
=
$new_row
->
getDestination
();
if
(
array_key_exists
(
'key'
,
$this
->
configuration
))
{
$key
=
$this
->
transformKey
(
$key
,
$migrate_executable
,
$new_row
);
Loading