3 namespace Drupal\migrate\Event;
5 use Drupal\migrate\Plugin\MigrationInterface;
6 use Drupal\migrate\MigrateMessageInterface;
7 use Drupal\migrate\Row;
10 * Wraps a post-save event for event listeners.
12 class MigratePostRowSaveEvent extends MigratePreRowSaveEvent {
15 * The row's destination ID.
19 protected $destinationIdValues = [];
22 * Constructs a post-save event object.
24 * @param \Drupal\migrate\Plugin\MigrationInterface $migration
26 * @param \Drupal\migrate\MigrateMessageInterface $message
27 * The message interface.
28 * @param \Drupal\migrate\Row $row
30 * @param array|bool $destination_id_values
31 * Values represent the destination ID.
33 public function __construct(MigrationInterface $migration, MigrateMessageInterface $message, Row $row, $destination_id_values) {
34 parent::__construct($migration, $message, $row);
35 $this->destinationIdValues = $destination_id_values;
39 * Gets the destination ID values.
42 * The destination ID as an array.
44 public function getDestinationIdValues() {
45 return $this->destinationIdValues;