You are here

public function FeedImportUniVectorReader::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 FeedImportReader::formatPath

1 call to FeedImportUniVectorReader::formatPath()
CSVFIReader::formatPath in feed_import_base/src/CSVFIReader.php
Override this to preprocess your paths before they are used in map().
1 method overrides FeedImportUniVectorReader::formatPath()
CSVFIReader::formatPath in feed_import_base/src/CSVFIReader.php
Override this to preprocess your paths before they are used in map().

File

feed_import_base/src/FeedImportUniVectorReader.php, line 42

Class

FeedImportUniVectorReader
This class is a helper for unidimensional vector reader. This can be used for CSV, SQL results, etc.

Namespace

Drupal\feed_import_base

Code

public function formatPath($path) {
  return preg_split('/(\\s?\\|\\s?)/', $path, -1, PREG_SPLIT_NO_EMPTY);
}