migration = $migration; $this->sourceIdValues = $source_id_values; $this->message = $message; $this->level = $level; } /** * Gets the migration entity. * * @return \Drupal\migrate\Plugin\MigrationInterface * The migration entity involved. */ public function getMigration() { return $this->migration; } /** * Gets the source ID values. * * @return array * The source ID as an array. */ public function getSourceIdValues() { return $this->sourceIdValues; } /** * Gets the message to be logged. * * @return string * The message text. */ public function getMessage() { return $this->message; } /** * Gets the severity level of the message (one of the * MigrationInterface::MESSAGE_* constants). * * @return int * The message level. */ public function getLevel() { return $this->level; } }