Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
2 / 2 |
| MigrateImportEvent | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
2 / 2 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getMigration | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\migrate\Event\MigrateImportEvent. | |
| */ | |
| namespace Drupal\migrate\Event; | |
| use Drupal\migrate\Entity\MigrationInterface; | |
| use Symfony\Component\EventDispatcher\Event; | |
| /** | |
| * Wraps a pre- or post-import event for event listeners. | |
| */ | |
| class MigrateImportEvent extends Event { | |
| /** | |
| * Migration entity. | |
| * | |
| * @var \Drupal\migrate\Entity\MigrationInterface | |
| */ | |
| protected $migration; | |
| /** | |
| * Constructs an import event object. | |
| * | |
| * @param \Drupal\migrate\Entity\MigrationInterface $migration | |
| * Migration entity. | |
| */ | |
| public function __construct(MigrationInterface $migration) { | |
| $this->migration = $migration; | |
| } | |
| /** | |
| * Gets the migration entity. | |
| * | |
| * @return \Drupal\migrate\Entity\MigrationInterface | |
| * The migration entity involved. | |
| */ | |
| public function getMigration() { | |
| return $this->migration; | |
| } | |
| } |