bundle/Core/Service/ExporterService.php
protected function getAttributeValue($fieldId, $attributes)
    {
        /** @var EzInfoCollectionAttribute $attribute */
        foreach ($attributes as $attribute) {

            if ($fieldId === $attribute->getContentClassAttributeId()) {
                $value = $attribute->getValue();
                $value = str_replace('"', '""', $value);
                $value = str_replace(';', ', ', $value);
                $value = strip_tags($value);

                return preg_replace(array( '/\r|\n/' ), array( ' ' ), $value);

            }
        }

        return '';
    }
protected function getAttributeValue($fieldId, $attributes)
    {
        /** @var EzInfoCollectionAttribute $attribute */
        foreach ($attributes as $attribute) {

            if ($fieldId === $attribute->getContentClassAttributeId()) {
                $value = $attribute->getValue();
                $value = str_replace('"', '""', $value);
                $value = str_replace(';', ', ', $value);
                $value = strip_tags($value);

                return preg_replace(array( '/\r|\n/' ), array( ' ' ), $value);

            }
        }

        return '';
    }
protected function getAttributeValue ( $ fieldId , $ attributes ) { /** @var EzInfoCollectionAttribute $attribute */ foreach ( $ attributes as $ attribute ) { if ( $ fieldId === $ attribute -> getContentClassAttributeId ( ) ) { $ value = $ attribute -> getValue ( ) ; $ value = str_replace ( '"' , '""' , $ value ) ; $ value = str_replace ( ';' , ', ' , $ value ) ; $ value = strip_tags ( $ value ) ; return preg_replace ( array ( '/\r|\n/' ) , array ( ' ' ) , $ value ) ; } } return '' ; }
Get attribute value string

@param int $fieldId
@param array $attributes

@return string
Get attribute value string