You are here

public function MigrateIdMapMessageEvent::__construct in Zircon Profile 8

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

Constructs a post-save event object.

Parameters

\Drupal\migrate\Entity\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 58
Contains \Drupal\migrate\Event\MigrateIdMapMessageEvent.

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;
}