class MigratePreRowSaveEvent extends EventBase (View source)

Wraps a pre-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.

Methods

__construct(MigrationInterface $migration, MigrateMessageInterface $message, Row $row)

Constructs a pre-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.

Details

__construct(MigrationInterface $migration, MigrateMessageInterface $message, Row $row)

Constructs a pre-save event object.

Parameters

MigrationInterface $migration

The migration being run.

MigrateMessageInterface $message

The Migrate message service.

Row $row

The current row.

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.