final class MigratePrepareRowEvent extends Event (View source)

internal  
 

Wraps a prepare-row event for event listeners.

@todo Deprecate this class when #2952291 lands.

Properties

protected Row $row

Row object.

protected MigrateSourceInterface $source

Migration source plugin.

protected MigrationInterface $migration

Migration plugin.

Methods

__construct(Row $row, MigrateSourceInterface $source, MigrationInterface $migration)

Constructs a prepare-row event object.

Row
getRow()

Gets the row object.

MigrateSourceInterface
getSource()

Gets the source plugin.

MigrationInterface
getMigration()

Gets the migration plugin.

Details

__construct(Row $row, MigrateSourceInterface $source, MigrationInterface $migration)

Constructs a prepare-row event object.

Parameters

Row $row

Row of source data to be analyzed/manipulated.

MigrateSourceInterface $source

Source plugin that is the source of the event.

MigrationInterface $migration

Migration entity.

Row getRow()

Gets the row object.

Return Value

Row

The row object about to be imported.

MigrateSourceInterface getSource()

Gets the source plugin.

Return Value

MigrateSourceInterface

$source The source plugin firing the event.

MigrationInterface getMigration()

Gets the migration plugin.

Return Value

MigrationInterface

The migration entity being imported.