You are here

public function ShortcutSetUsers::getIds in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/shortcut/src/Plugin/migrate/destination/ShortcutSetUsers.php \Drupal\shortcut\Plugin\migrate\destination\ShortcutSetUsers::getIds()
  2. 8 core/modules/shortcut/src/Plugin/migrate/source/d7/ShortcutSetUsers.php \Drupal\shortcut\Plugin\migrate\source\d7\ShortcutSetUsers::getIds()
Same name and namespace in other branches
  1. 8.0 core/modules/shortcut/src/Plugin/migrate/destination/ShortcutSetUsers.php \Drupal\shortcut\Plugin\migrate\destination\ShortcutSetUsers::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/shortcut/src/Plugin/migrate/destination/ShortcutSetUsers.php, line 67
Contains \Drupal\shortcut\Plugin\migrate\destination\ShortcutSetUsers.

Class

ShortcutSetUsers
Plugin annotation @MigrateDestination( id = "shortcut_set_users" )

Namespace

Drupal\shortcut\Plugin\migrate\destination

Code

public function getIds() {
  return array(
    'set_name' => array(
      'type' => 'string',
    ),
    'uid' => array(
      'type' => 'integer',
    ),
  );
}