private function Importer::explode in Feeds Paragraphs 8
File
- src/
Importer.php, line 171
Class
Namespace
Drupal\feeds_para_mapperCode
private function explode() {
$values = array();
$final = [
$this->values,
];
if (strpos($this->values[0]['value'], '|') !== FALSE) {
$values = explode('|', $this->values[0]['value']);
}
if (is_array($values)) {
$final = array();
foreach ($values as $value) {
$list = explode(',', $value);
foreach ($list as $item) {
$val = [
'value' => $item,
];
$final[] = $val;
}
}
}
$this->values = $final;
}