3 namespace Drupal\migrate\Plugin\migrate\process;
5 use Drupal\migrate\MigrateExecutableInterface;
6 use Drupal\migrate\ProcessPluginBase;
7 use Drupal\migrate\Row;
10 * Logs values without changing them.
12 * The log plugin will log the values that are being processed by other plugins.
22 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
24 * @MigrateProcessPlugin(
28 class Log extends ProcessPluginBase {
33 public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
35 $migrate_executable->saveMessage($value);
37 // Pass through the same value we received.