You are here

public function DummyDestination::import in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/tests/modules/migrate_events_test/src/Plugin/migrate/destination/DummyDestination.php \Drupal\migrate_events_test\Plugin\migrate\destination\DummyDestination::import()

Import the row.

Derived classes must implement import(), to construct one new object (pre-populated) using ID mappings in the Migration.

Parameters

\Drupal\migrate\Row $row: The row object.

array $old_destination_id_values: The old destination ids.

Return value

mixed The entity id or an indication of success.

Overrides MigrateDestinationInterface::import

File

core/modules/migrate/tests/modules/migrate_events_test/src/Plugin/migrate/destination/DummyDestination.php, line 40
Contains \Drupal\migrate_events_test\Plugin\migrate\destination\DummyDestination.

Class

DummyDestination
Plugin annotation @MigrateDestination( id = "dummy", requirements_met = true )

Namespace

Drupal\migrate_events_test\Plugin\migrate\destination

Code

public function import(Row $row, array $old_destination_id_values = array()) {
  return [
    'value' => $row
      ->getDestinationProperty('value'),
  ];
}