class MigratePostRowSaveEvent in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Event/MigratePostRowSaveEvent.php \Drupal\migrate\Event\MigratePostRowSaveEvent
- 9 core/modules/migrate/src/Event/MigratePostRowSaveEvent.php \Drupal\migrate\Event\MigratePostRowSaveEvent
Wraps a post-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\MigratePostRowSaveEvent
- class \Drupal\migrate\Event\MigratePreRowSaveEvent
- class \Drupal\migrate\Event\EventBase
Expanded class hierarchy of MigratePostRowSaveEvent
6 files declare their use of MigratePostRowSaveEvent
- MigrateEventsTest.php in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEventsTest.php - MigrateExecutable.php in core/
modules/ migrate/ src/ MigrateExecutable.php - MigrateInterruptionTest.php in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateInterruptionTest.php - MigratePostRowSaveEventTest.php in core/
modules/ migrate/ tests/ src/ Unit/ Event/ MigratePostRowSaveEventTest.php - MigrateUpgradeImportBatch.php in core/
modules/ migrate_drupal_ui/ src/ Batch/ MigrateUpgradeImportBatch.php
File
- core/
modules/ migrate/ src/ Event/ MigratePostRowSaveEvent.php, line 12
Namespace
Drupal\migrate\EventView source
class MigratePostRowSaveEvent extends MigratePreRowSaveEvent {
/**
* The row's destination ID.
*
* @var array|bool
*/
protected $destinationIdValues = [];
/**
* Constructs a post-save event object.
*
* @param \Drupal\migrate\Plugin\MigrationInterface $migration
* Migration entity.
* @param \Drupal\migrate\MigrateMessageInterface $message
* The message interface.
* @param \Drupal\migrate\Row $row
* Row object.
* @param array|bool $destination_id_values
* Values represent the destination ID.
*/
public function __construct(MigrationInterface $migration, MigrateMessageInterface $message, Row $row, $destination_id_values) {
parent::__construct($migration, $message, $row);
$this->destinationIdValues = $destination_id_values;
}
/**
* Gets the destination ID values.
*
* @return array
* The destination ID as an array.
*/
public function getDestinationIdValues() {
return $this->destinationIdValues;
}
}
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. | |
MigratePostRowSaveEvent:: |
protected | property | The row's destination ID. | |
MigratePostRowSaveEvent:: |
public | function | Gets the destination ID values. | |
MigratePostRowSaveEvent:: |
public | function |
Constructs a post-save event object. Overrides MigratePreRowSaveEvent:: |
|
MigratePreRowSaveEvent:: |
protected | property | Row object. | |
MigratePreRowSaveEvent:: |
public | function | Gets the row object. |