class EventBase extends Event (View source)

Properties

protected MigrationInterface $migration

The migration.

protected MigrateMessageInterface $message

The current message service.

Methods

__construct(MigrationInterface $migration, MigrateMessageInterface $message)

Constructs a Migrate event object.

getMigration()

Gets the migration.

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

Logs a message using the Migrate message service.

Details

__construct(MigrationInterface $migration, MigrateMessageInterface $message)

Constructs a Migrate event object.

Parameters

MigrationInterface $migration

The migration being run.

MigrateMessageInterface $message

The Migrate message service.

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.