You are here

public function MigrateXMLFieldMapping::xpath in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/sources/xml.inc \MigrateXMLFieldMapping::xpath()

Add an xpath to this field mapping.

Parameters

string $xpath: xpath

Return value

MigrateFieldMapping MigrateFieldMapping

File

plugins/sources/xml.inc, line 312
Support for migration from XML sources.

Class

MigrateXMLFieldMapping
Adds xpath info to field mappings for XML sources

Code

public function xpath($xpath) {
  $this->xpath = $xpath;
  return $this;
}