You are here

class MigratePostRowSaveEvent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Event/MigratePostRowSaveEvent.php \Drupal\migrate\Event\MigratePostRowSaveEvent

Wraps a post-save event for event listeners.

Hierarchy

Expanded class hierarchy of MigratePostRowSaveEvent

3 files declare their use of MigratePostRowSaveEvent
MigrateEventsTest.php in core/modules/migrate/src/Tests/MigrateEventsTest.php
Contains \Drupal\migrate\Tests\MigrateEventsTest.
MigrateExecutable.php in core/modules/migrate/src/MigrateExecutable.php
Contains \Drupal\migrate\MigrateExecutable.
MigrateInterruptionTest.php in core/modules/migrate/src/Tests/MigrateInterruptionTest.php
Contains \Drupal\migrate\Tests\MigrateInterruptionTest.

File

core/modules/migrate/src/Event/MigratePostRowSaveEvent.php, line 16
Contains \Drupal\migrate\Event\MigratePostRowSaveEvent.

Namespace

Drupal\migrate\Event
View source
class MigratePostRowSaveEvent extends MigratePreRowSaveEvent {

  /**
   * Constructs a post-save event object.
   *
   * @param \Drupal\migrate\Entity\MigrationInterface $migration
   *   Migration entity.
   * @param \Drupal\migrate\Row $row
   *   Row object.
   * @param array|bool $destination_id_values
   *   Values represent the destination ID.
   */
  public function __construct(MigrationInterface $migration, Row $row, $destination_id_values) {
    parent::__construct($migration, $row);
    $this->destinationIdValues = $destination_id_values;
  }

  /**
   * Gets the destination ID values.
   *
   * @return array
   *   The destination ID as an array.
   */
  public function getDestinationIdValues() {
    return $this->destinationIdValues;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Event::$dispatcher private property
Event::$name private property
Event::$propagationStopped private property
Event::getDispatcher Deprecated public function Returns the EventDispatcher that dispatches this Event.
Event::getName Deprecated public function Gets the event's name.
Event::isPropagationStopped public function Returns whether further event listeners should be triggered.
Event::setDispatcher Deprecated public function Stores the EventDispatcher that dispatches this Event.
Event::setName Deprecated public function Sets the event's name property.
Event::stopPropagation public function Stops the propagation of the event to further event listeners.
MigratePostRowSaveEvent::getDestinationIdValues public function Gets the destination ID values.
MigratePostRowSaveEvent::__construct public function Constructs a post-save event object. Overrides MigratePreRowSaveEvent::__construct
MigratePreRowSaveEvent::$migration protected property Migration entity.
MigratePreRowSaveEvent::$row protected property Row object.
MigratePreRowSaveEvent::getMigration public function Gets the migration entity.
MigratePreRowSaveEvent::getRow public function Gets the row object.