You are here

public function EntityConfigBase::getIds in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase::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

1 call to EntityConfigBase::getIds()
EntityConfigBase::import in core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php
Import the row.
3 methods override EntityConfigBase::getIds()
EntityFieldInstance::getIds in core/modules/migrate/src/Plugin/migrate/destination/EntityFieldInstance.php
Get the destination ids.
EntityFieldStorageConfig::getIds in core/modules/migrate/src/Plugin/migrate/destination/EntityFieldStorageConfig.php
Get the destination ids.
EntityViewMode::getIds in core/modules/migrate/src/Plugin/migrate/destination/EntityViewMode.php
Get the destination ids.

File

core/modules/migrate/src/Plugin/migrate/destination/EntityConfigBase.php, line 63
Contains \Drupal\migrate\Plugin\migrate\destination\EntityConfigBase.

Class

EntityConfigBase
Class for importing configuration entities.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function getIds() {
  $id_key = $this
    ->getKey('id');
  $ids[$id_key]['type'] = 'string';
  return $ids;
}