From 4984acbe23a3853321e2b6b7753dd6b95bd4fc7d Mon Sep 17 00:00:00 2001 From: benji Date: Sun, 10 Feb 2019 14:23:32 -0500 Subject: [PATCH] Issue #3021648 by benjifisher, selwynpolit: Add a migrate plugin to debug one process step --- src/Plugin/migrate/process/Debug.php | 85 ++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/Plugin/migrate/process/Debug.php diff --git a/src/Plugin/migrate/process/Debug.php b/src/Plugin/migrate/process/Debug.php new file mode 100644 index 0000000..6a46aad --- /dev/null +++ b/src/Plugin/migrate/process/Debug.php @@ -0,0 +1,85 @@ +configuration['label'])) { + print_r($this->configuration['label']); + } + print_r($value); + if (!is_array($value)) { + print_r(PHP_EOL); + } + + return $value; + } + + /** + * {@inheritdoc} + */ + public function multiple() { + return !empty($this->configuration['multiple']); + } + +} -- GitLab