class MigrateIdMapMessageEvent extends Event (View source)

Wraps an ID map message event for event listeners.

Properties

protected MigrationInterface $migration

Migration entity.

protected array $sourceIdValues

Array of values uniquely identifying the source row.

protected string $message

Message to be logged.

protected int $level

Message severity.

Methods

__construct(MigrationInterface $migration, array $source_id_values, string $message, int $level)

Constructs a post-save event object.

getMigration()

Gets the migration entity.

array
getSourceIdValues()

Gets the source ID values.

string
getMessage()

Gets the message to be logged.

int
getLevel()

Gets the severity level of the message (one of the MigrationInterface::MESSAGE_* constants).

Details

__construct(MigrationInterface $migration, array $source_id_values, string $message, int $level)

Constructs a post-save event object.

Parameters

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).

MigrationInterface getMigration()

Gets the migration entity.

Return Value

MigrationInterface

The migration entity involved.

array getSourceIdValues()

Gets the source ID values.

Return Value

array

The source ID as an array.

string getMessage()

Gets the message to be logged.

Return Value

string

The message text.

int getLevel()

Gets the severity level of the message (one of the MigrationInterface::MESSAGE_* constants).

Return Value

int

The message level.