concrete/src/Csv/Import/AbstractImporter.php
private function convertCsvDataForAttributeController(AttributeController $attributeController, $csvData)
    {
        $result = $csvData;
        if ($attributeController instanceof MulticolumnTextExportableAttributeInterface) {
            $attributeHeaders = $attributeController->getAttributeTextRepresentationHeaders();
            $result = array_pad([], count($attributeHeaders), '');
            foreach ($attributeHeaders as $attributeHeaderIndex => $attributeHeaderName) {
                if (isset($csvData[$attributeHeaderName])) {
                    $result[$attributeHeaderIndex] = $csvData[$attributeHeaderName];
                }
            }
        }

        return $result;
    }
private function convertCsvDataForAttributeController(AttributeController $attributeController, $csvData)
    {
        $result = $csvData;
        if ($attributeController instanceof MulticolumnTextExportableAttributeInterface) {
            $attributeHeaders = $attributeController->getAttributeTextRepresentationHeaders();
            $result = array_pad([], count($attributeHeaders), '');
            foreach ($attributeHeaders as $attributeHeaderIndex => $attributeHeaderName) {
                if (isset($csvData[$attributeHeaderName])) {
                    $result[$attributeHeaderIndex] = $csvData[$attributeHeaderName];
                }
            }
        }

        return $result;
    }
private function convertCsvDataForAttributeController ( AttributeController $ attributeController , $ csvData ) { $ result = $ csvData ; if ( $ attributeController instanceof MulticolumnTextExportableAttributeInterface ) { $ attributeHeaders = $ attributeController -> getAttributeTextRepresentationHeaders ( ) ; $ result = array_pad ( [ ] , count ( $ attributeHeaders ) , '' ) ; foreach ( $ attributeHeaders as $ attributeHeaderIndex => $ attributeHeaderName ) { if ( isset ( $ csvData [ $ attributeHeaderName ] ) ) { $ result [ $ attributeHeaderIndex ] = $ csvData [ $ attributeHeaderName ] ; } } } return $ result ; }
Convert the data read from CSV to be passed to the attribute controller.

@param AttributeController $controller
@param string|array $csvData
@param AttributeController $attributeController

@return string|string[]
Convert the data read from CSV to be passed to the attribute controller .