function MigrateIdMapMessageEvent::__construct

Same name in other branches
  1. 9 core/modules/migrate/src/Event/MigrateIdMapMessageEvent.php \Drupal\migrate\Event\MigrateIdMapMessageEvent::__construct()
  2. 10 core/modules/migrate/src/Event/MigrateIdMapMessageEvent.php \Drupal\migrate\Event\MigrateIdMapMessageEvent::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.