protected function Sql::destinationIdFields in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Plugin/migrate/id_map/Sql.php \Drupal\migrate\Plugin\migrate\id_map\Sql::destinationIdFields()
The destination ID fields.
Return value
array The destination ID fields.
7 calls to Sql::destinationIdFields()
- Sql::currentDestination in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php - @inheritdoc
- Sql::deleteDestination in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php - Deletes the map and message table entries for a given destination row.
- Sql::getRowByDestination in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php - Retrieves a row by the destination identifiers.
- Sql::lookupDestinationId in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php - Looks up the destination identifier corresponding to a source key.
- Sql::lookupSourceID in core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php - Looks up the source identifier.
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ id_map/ Sql.php, line 196 - Contains \Drupal\migrate\Plugin\migrate\id_map\Sql.
Class
- Sql
- Defines the sql based ID map implementation.
Namespace
Drupal\migrate\Plugin\migrate\id_mapCode
protected function destinationIdFields() {
if (!isset($this->destinationIdFields)) {
$this->destinationIdFields = array();
$count = 1;
foreach ($this->migration
->getDestinationPlugin()
->getIds() as $field => $schema) {
$this->destinationIdFields[$field] = 'destid' . $count++;
}
}
return $this->destinationIdFields;
}