You are here

public function MigrateIdMapMessageEvent::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Event/MigrateIdMapMessageEvent.php \Drupal\migrate\Event\MigrateIdMapMessageEvent::__construct()

Constructs a post-save event object.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: Migration entity.

array $source_id_values: Values represent the source ID.

string $message: The message

int $level: Severity level (one of the MigrationInterface::MESSAGE_* constants).

File

core/modules/migrate/src/Event/MigrateIdMapMessageEvent.php, line 53

Class

MigrateIdMapMessageEvent
Wraps an idmap message event for event listeners.

Namespace

Drupal\migrate\Event

Code

public function __construct(MigrationInterface $migration, array $source_id_values, $message, $level) {
  $this->migration = $migration;
  $this->sourceIdValues = $source_id_values;
  $this->message = $message;
  $this->level = $level;
}