class MigratePreRowSaveEvent
Wraps a pre-save event for event listeners.
Hierarchy
- class \Symfony\Contracts\EventDispatcher\Event implements \Psr\EventDispatcher\StoppableEventInterface
- class \Drupal\Component\EventDispatcher\Event extends \Symfony\Contracts\EventDispatcher\Event
- class \Drupal\migrate\Event\EventBase extends \Drupal\Component\EventDispatcher\Event
- class \Drupal\migrate\Event\MigratePreRowSaveEvent extends \Drupal\migrate\Event\EventBase
- class \Drupal\migrate\Event\EventBase extends \Drupal\Component\EventDispatcher\Event
- class \Drupal\Component\EventDispatcher\Event extends \Symfony\Contracts\EventDispatcher\Event
Expanded class hierarchy of MigratePreRowSaveEvent
1 file declares its use of MigratePreRowSaveEvent
- MigrateExecutable.php in core/
modules/ migrate/ src/ MigrateExecutable.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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
EventBase::$message | protected | property | The current message service. | ||
EventBase::$migration | protected | property | The migration. | ||
EventBase::getMigration | public | function | Gets the migration. | ||
EventBase::logMessage | public | function | Logs a message using the Migrate message service. | ||
MigratePreRowSaveEvent::$row | protected | property | Row object. | ||
MigratePreRowSaveEvent::getRow | public | function | Gets the row object. | ||
MigratePreRowSaveEvent::__construct | public | function | Constructs a pre-save event object. | Overrides EventBase::__construct | 1 |