You are here

public function DummyDestination::getIds 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::getIds()

Get the destination ids.

To support MigrateIdMap maps, derived destination classes should return schema field definition(s) corresponding to the primary key of the destination being implemented. These are used to construct the destination key fields of the map table for a migration using this destination.

Return value

array An array of ids.

Overrides MigrateDestinationInterface::getIds

File

core/modules/migrate/tests/modules/migrate_events_test/src/Plugin/migrate/destination/DummyDestination.php, line 25
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 getIds() {
  $ids['value']['type'] = 'string';
  return $ids;
}