SourceEvent.php 628 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Drupal\reinstall;
  3. use Drupal\migrate\Plugin\MigrateSourceInterface;
  4. use Drupal\reinstall\Plugin\migrate\source\ReinstallSourceBase;
  5. use Symfony\Component\EventDispatcher\Event;
  6. /**
  7. * @see \Drupal\reinstall\ReinstallEvents::POST_SOURCE_PARSE
  8. */
  9. class SourceEvent extends Event {
  10. /**
  11. * The source for the migration.
  12. *
  13. * @var MigrateSourceInterface
  14. */
  15. public $source;
  16. /**
  17. * DumperEvent constructor.
  18. *
  19. * @param \Drupal\reinstall\Plugin\migrate\source\ReinstallSourceBase $source
  20. */
  21. public function __construct(ReinstallSourceBase $source) {
  22. $this->source = $source;
  23. }
  24. }