class MigratePostRowSaveEvent extends MigratePreRowSaveEvent (View source)

Wraps a post-save event for event listeners.

Properties

protected MigrationInterface $migration

The migration.

from  EventBase
protected MigrateMessageInterface $message

The current message service.

from  EventBase
protected Row $row

Row object.

from  MigratePreRowSaveEvent
protected array|bool $destinationIdValues

The row's destination ID.

Methods

__construct(MigrationInterface $migration, MigrateMessageInterface $message, Row $row, array|bool $destination_id_values)

Constructs a post-save event object.

getMigration()

Gets the migration.

logMessage(string $message, string $type = 'status')

Logs a message using the Migrate message service.

Row
getRow()

Gets the row object.

array
getDestinationIdValues()

Gets the destination ID values.

Details

__construct(MigrationInterface $migration, MigrateMessageInterface $message, Row $row, array|bool $destination_id_values)

Constructs a post-save event object.

Parameters

MigrationInterface $migration

The migration being run.

MigrateMessageInterface $message

The Migrate message service.

Row $row

The current row.

array|bool $destination_id_values

Values represent the destination ID.

MigrationInterface getMigration()

Gets the migration.

Return Value

MigrationInterface

The migration being run.

logMessage(string $message, string $type = 'status')

Logs a message using the Migrate message service.

Parameters

string $message

The message to log.

string $type

The type of message, for example: status or warning.

Row getRow()

Gets the row object.

Return Value

Row

The row object about to be imported.

array getDestinationIdValues()

Gets the destination ID values.

Return Value

array

The destination ID as an array.