class MigratePrepareRowEvent in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 src/Event/MigratePrepareRowEvent.php \Drupal\migrate_plus\Event\MigratePrepareRowEvent
- 8 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
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 13
Namespace
Drupal\migrate_plus\EventView source
class MigratePrepareRowEvent extends Event {
/**
* Row object.
*
* @var \Drupal\migrate\Row
*/
protected $row;
/**
* Migration source plugin.
*
* @var \Drupal\migrate\Plugin\MigrateSourceInterface
*/
protected $source;
/**
* Migration plugin.
*
* @var \Drupal\migrate\Plugin\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\Plugin\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
* The source plugin firing the event.
*/
public function getSource() {
return $this->source;
}
/**
* Gets the migration plugin.
*
* @return \Drupal\migrate\Plugin\MigrationInterface
* The migration entity being imported.
*/
public function getMigration() {
return $this->migration;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigratePrepareRowEvent:: |
protected | property | Migration plugin. | |
MigratePrepareRowEvent:: |
protected | property | Row object. | |
MigratePrepareRowEvent:: |
protected | property | Migration source plugin. | |
MigratePrepareRowEvent:: |
public | function | Gets the migration plugin. | |
MigratePrepareRowEvent:: |
public | function | Gets the row object. | |
MigratePrepareRowEvent:: |
public | function | Gets the source plugin. | |
MigratePrepareRowEvent:: |
public | function | Constructs a prepare-row event object. |