class MigratePreRowSaveEvent in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Event/MigratePreRowSaveEvent.php \Drupal\migrate\Event\MigratePreRowSaveEvent
- 9 core/modules/migrate/src/Event/MigratePreRowSaveEvent.php \Drupal\migrate\Event\MigratePreRowSaveEvent
Wraps a pre-save event for event listeners.
Hierarchy
- class \Drupal\Component\EventDispatcher\Event extends \Symfony\Contracts\EventDispatcher\Event
- class \Drupal\migrate\Event\EventBase
- class \Drupal\migrate\Event\MigratePreRowSaveEvent
- class \Drupal\migrate\Event\EventBase
Expanded class hierarchy of MigratePreRowSaveEvent
3 files declare their use of MigratePreRowSaveEvent
- MigrateEventsTest.php in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEventsTest.php - MigrateExecutable.php in core/
modules/ migrate/ src/ MigrateExecutable.php - MigratePreRowSaveEventTest.php in core/
modules/ migrate/ tests/ src/ Unit/ Event/ MigratePreRowSaveEventTest.php
File
- core/
modules/ migrate/ src/ Event/ MigratePreRowSaveEvent.php, line 12
Namespace
Drupal\migrate\EventView source
class MigratePreRowSaveEvent extends EventBase {
/**
* Row object.
*
* @var \Drupal\migrate\Row
*/
protected $row;
/**
* Constructs a pre-save event object.
*
* @param \Drupal\migrate\Plugin\MigrationInterface $migration
* Migration entity.
* @param \Drupal\migrate\MigrateMessageInterface $message
* The current migrate message service.
* @param \Drupal\migrate\Row $row
* The current row.
*/
public function __construct(MigrationInterface $migration, MigrateMessageInterface $message, Row $row) {
parent::__construct($migration, $message);
$this->row = $row;
}
/**
* Gets the row object.
*
* @return \Drupal\migrate\Row
* The row object about to be imported.
*/
public function getRow() {
return $this->row;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
protected | property | The current message service. | |
EventBase:: |
protected | property | The migration. | |
EventBase:: |
public | function | Gets the migration. | |
EventBase:: |
public | function | Logs a message using the Migrate message service. | |
MigratePreRowSaveEvent:: |
protected | property | Row object. | |
MigratePreRowSaveEvent:: |
public | function | Gets the row object. | |
MigratePreRowSaveEvent:: |
public | function |
Constructs a pre-save event object. Overrides EventBase:: |
1 |