You are here

public function BlockedIP::getIds in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIP::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/ban/src/Plugin/migrate/destination/BlockedIp.php, line 68
Contains \Drupal\ban\Plugin\migrate\destination\BlockedIP.

Class

BlockedIP
Destination for blocked IP addresses.

Namespace

Drupal\ban\Plugin\migrate\destination

Code

public function getIds() {
  return [
    'ip' => [
      'type' => 'string',
    ],
  ];
}