You are here

public function MigrateSourceMongoDB::getSourceKeyNameAndType in Migrate 7.2

Get source keys array.

1 call to MigrateSourceMongoDB::getSourceKeyNameAndType()
MigrateSourceMongoDB::performRewind in plugins/sources/mongodb.inc
Implementation of MigrateSource::performRewind().

File

plugins/sources/mongodb.inc, line 179
Define a MigrateSource for importing from MongoDB connections

Class

MigrateSourceMongoDB
Implementation of MigrateSource, to handle imports from MongoDB connections.

Code

public function getSourceKeyNameAndType() {

  // Get the key name, and type.
  $keys = array();
  foreach ($this->activeMap
    ->getSourceKey() as $field_name => $field_schema) {
    $keys[] = array(
      'name' => $field_name,
      'type' => $field_schema['type'],
    );
  }
  return $keys;
}