class MigratePostRowSaveEvent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Event/MigratePostRowSaveEvent.php \Drupal\migrate\Event\MigratePostRowSaveEvent
Wraps a post-save event for event listeners.
Hierarchy
- class \Symfony\Component\EventDispatcher\Event
- class \Drupal\migrate\Event\MigratePreRowSaveEvent
- class \Drupal\migrate\Event\MigratePostRowSaveEvent
- class \Drupal\migrate\Event\MigratePreRowSaveEvent
Expanded class hierarchy of MigratePostRowSaveEvent
3 files declare their use of MigratePostRowSaveEvent
- MigrateEventsTest.php in core/
modules/ migrate/ src/ Tests/ MigrateEventsTest.php - Contains \Drupal\migrate\Tests\MigrateEventsTest.
- MigrateExecutable.php in core/
modules/ migrate/ src/ MigrateExecutable.php - Contains \Drupal\migrate\MigrateExecutable.
- MigrateInterruptionTest.php in core/
modules/ migrate/ src/ Tests/ MigrateInterruptionTest.php - Contains \Drupal\migrate\Tests\MigrateInterruptionTest.
File
- core/
modules/ migrate/ src/ Event/ MigratePostRowSaveEvent.php, line 16 - Contains \Drupal\migrate\Event\MigratePostRowSaveEvent.
Namespace
Drupal\migrate\EventView source
class MigratePostRowSaveEvent extends MigratePreRowSaveEvent {
/**
* Constructs a post-save event object.
*
* @param \Drupal\migrate\Entity\MigrationInterface $migration
* Migration entity.
* @param \Drupal\migrate\Row $row
* Row object.
* @param array|bool $destination_id_values
* Values represent the destination ID.
*/
public function __construct(MigrationInterface $migration, Row $row, $destination_id_values) {
parent::__construct($migration, $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 |
---|---|---|---|---|
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
public | function | Returns the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Gets the event's name. | |
Event:: |
public | function | Returns whether further event listeners should be triggered. | |
Event:: |
public | function | Stores the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Sets the event's name property. | |
Event:: |
public | function | Stops the propagation of the event to further event listeners. | |
MigratePostRowSaveEvent:: |
public | function | Gets the destination ID values. | |
MigratePostRowSaveEvent:: |
public | function |
Constructs a post-save event object. Overrides MigratePreRowSaveEvent:: |
|
MigratePreRowSaveEvent:: |
protected | property | Migration entity. | |
MigratePreRowSaveEvent:: |
protected | property | Row object. | |
MigratePreRowSaveEvent:: |
public | function | Gets the migration entity. | |
MigratePreRowSaveEvent:: |
public | function | Gets the row object. |