class MigratePrepareRowEvent in Migrate Plus 8
Same name and namespace in other branches
- 8.5 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent
- 8.2 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent
- 8.3 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent
- 8.4 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent
Wraps a prepare-row event for event listeners.
Hierarchy
- class \Drupal\migrate_plus\Event\MigratePrepareRowEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of MigratePrepareRowEvent
1 file declares its use of MigratePrepareRowEvent
- migrate_plus.module in ./
migrate_plus.module - Provides enhancements for implementing and managing migrations.
File
- src/
Event/ MigratePrepareRowEvent.php, line 18 - Contains \Drupal\migrate_plus\Event\MigratePrepareRowEvent.
Namespace
Drupal\migrate_plus\EventView source
class MigratePrepareRowEvent extends Event {
/**
* Row object.
*
* @var \Drupal\migrate\Row
*/
protected $row;
/**
* Migration entity.
*
* @var \Drupal\migrate\Plugin\MigrateSourceInterface
*/
protected $source;
/**
* Migration entity.
*
* @var \Drupal\migrate\Entity\MigrationInterface
*/
protected $migration;
/**
* Constructs a prepare-row event object.
*
* @param \Drupal\migrate\Row $row
* Row of source data to be analyzed/manipulated.
*
* @param \Drupal\migrate\Plugin\MigrateSourceInterface $source
* Source plugin that is the source of the event.
*
* @param \Drupal\migrate\Entity\MigrationInterface $migration
* Migration entity.
*/
public function __construct(Row $row, MigrateSourceInterface $source, MigrationInterface $migration) {
$this->row = $row;
$this->source = $source;
$this->migration = $migration;
}
/**
* Gets the row object.
*
* @return \Drupal\migrate\Row
* The row object about to be imported.
*/
public function getRow() {
return $this->row;
}
/**
* Gets the source plugin.
*
* @return \Drupal\migrate\Plugin\MigrateSourceInterface $source
* The source plugin firing the event.
*/
public function getSource() {
return $this->source;
}
/**
* Gets the migration entity.
*
* @return \Drupal\migrate\Entity\MigrationInterface
* The migration entity being imported.
*/
public function getMigration() {
return $this->migration;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigratePrepareRowEvent:: |
protected | property | Migration entity. | |
MigratePrepareRowEvent:: |
protected | property | Row object. | |
MigratePrepareRowEvent:: |
protected | property | Migration entity. | |
MigratePrepareRowEvent:: |
public | function | Gets the migration entity. | |
MigratePrepareRowEvent:: |
public | function | Gets the row object. | |
MigratePrepareRowEvent:: |
public | function | Gets the source plugin. | |
MigratePrepareRowEvent:: |
public | function | Constructs a prepare-row event object. |