SourceEvent.php 671 B

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