Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Sql.php

function Sql::currentSource

Overrides MigrateIdMapInterface::currentSource

File

core/modules/migrate/src/Plugin/migrate/id_map/Sql.php, line 968

Class

Sql
Defines the sql based ID map implementation.

Namespace

Drupal\migrate\Plugin\migrate\id_map

Code

public function currentSource() {
    if ($this->valid()) {
        $result = [];
        foreach ($this->sourceIdFields() as $field_name => $source_id) {
            $result[$field_name] = $this->currentKey[$source_id];
        }
        return $result;
    }
    else {
        return NULL;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal