public function CSVFIReader::formatPath in Feed Import 8
Override this to preprocess your paths before they are used in map().
Parameters
string $path Path to format:
Return value
mixed Formatted path
Overrides FeedImportUniVectorReader::formatPath
File
- feed_import_base/
src/ CSVFIReader.php, line 77
Class
- CSVFIReader
- CSV Reader class, used to read csv files.
Namespace
Drupal\feed_import_baseCode
public function formatPath($path) {
$path = parent::formatPath($path);
if ($this->columns) {
foreach ($path as &$p) {
if (isset($this->columns[$p])) {
$p = $this->columns[$p];
}
}
}
return $path;
}