protected function MigrateSourceXML::hash in Migrate 7.2
Generate a hash of the source row.
Parameters
$row:
Return value
string
Overrides MigrateSource::hash
File
- plugins/
sources/ xml.inc, line 1394 - Support for migration from XML sources.
Class
- MigrateSourceXML
- Implementation of MigrateSource, to handle imports from XML files.
Code
protected function hash($row) {
// $row->xml is a SimpleXMLElement. Temporarily set it as an XML string
// to prevent parent::hash() failing when try to create the hash.
return parent::hash($row->xml
->asXML());
}