You are here

public function MigrateSource::key in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 includes/source.inc \MigrateSource::key()

Implementation of Iterator::key - called when entering a loop iteration, returning the key of the current row. It must be a scalar - we will serialize to fulfill the requirement, but using getCurrentKey() is preferable.

File

includes/source.inc, line 239
Define base for migration sources.

Class

MigrateSource
Abstract base class for source handling.

Code

public function key() {
  return serialize($this->currentKey);
}