From b21bcf4ed0daa54a80c163100d3b629affce065a Mon Sep 17 00:00:00 2001 From: quietone <quietone@2572884.no-reply.drupal.org> Date: Tue, 3 Sep 2024 15:41:13 +1200 Subject: [PATCH] Issue #3458295 by pooja_sharma, shalini_jha, prem suthar, joachim, smustgrave: getProcessPlugins() should explain why it has a process parameter and why it's optional --- core/modules/migrate/src/Plugin/MigrationInterface.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/modules/migrate/src/Plugin/MigrationInterface.php b/core/modules/migrate/src/Plugin/MigrationInterface.php index 1b7668fc84e8..488cc9f02b2d 100644 --- a/core/modules/migrate/src/Plugin/MigrationInterface.php +++ b/core/modules/migrate/src/Plugin/MigrationInterface.php @@ -121,8 +121,11 @@ public function getSourcePlugin(); /** * Returns the process plugins. * - * @param array $process - * A process configuration array. + * @param array|null $process + * (Optional) A process configuration array. Defaults to NULL. If specified, + * then the plugins from the given process array are returned. If not + * specified, then the plugins from this migration's process array are + * returned. * * @return \Drupal\migrate\Plugin\MigrateProcessInterface[][] * An associative array. The keys are the destination property names. Values -- GitLab