protected function MigrateSourceList::hash in Migrate 7.2
Overrides MigrateSource::hash().
Overrides MigrateSource::hash
File
- plugins/
sources/ list.inc, line 225 - Support for migration from sources with distinct means of listing items to import and obtaining the items themselves.
Class
- MigrateSourceList
- Implementation of MigrateSource, providing the semantics of iterating over IDs provided by a MigrateList and retrieving data from a MigrateItem.
Code
protected function hash($row) {
// Let the item class override the default hash function.
if (method_exists($this->itemClass, 'hash')) {
$hash = $this->itemClass
->hash($row);
}
else {
$hash = parent::hash($row);
}
return $hash;
}