function MigrateIdMapMessageEvent::__construct
Same name in other branches
- 9 core/modules/migrate/src/Event/MigrateIdMapMessageEvent.php \Drupal\migrate\Event\MigrateIdMapMessageEvent::__construct()
- 8.9.x core/modules/migrate/src/Event/MigrateIdMapMessageEvent.php \Drupal\migrate\Event\MigrateIdMapMessageEvent::__construct()
- 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 ID map message event for event listeners.
Namespace
Drupal\migrate\EventCode
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.