concrete/src/Express/Export/EntryList/CsvWriter.php
private function projectEntry(Entry $entry)
    {
        $date = $entry->getDateCreated();
        if ($date) {
            yield 'ccm_date_created' => $this->dateFormatter->formatCustom(\DateTime::ATOM, $date);
        } else {
            yield 'ccm_date_created' => null;
        }

        $attributes = $entry->getAttributes();
        foreach ($attributes as $attribute) {
            yield $attribute->getAttributeKey()->getAttributeKeyHandle() => $attribute->getPlainTextValue();
        }
    }
private function projectEntry(Entry $entry)
    {
        $date = $entry->getDateCreated();
        if ($date) {
            yield 'ccm_date_created' => $this->dateFormatter->formatCustom(\DateTime::ATOM, $date);
        } else {
            yield 'ccm_date_created' => null;
        }

        $attributes = $entry->getAttributes();
        foreach ($attributes as $attribute) {
            yield $attribute->getAttributeKey()->getAttributeKeyHandle() => $attribute->getPlainTextValue();
        }
    }
private function projectEntry ( Entry $ entry ) { $ date = $ entry -> getDateCreated ( ) ; if ( $ date ) { yield 'ccm_date_created' => $ this -> dateFormatter -> formatCustom ( \ DateTime :: ATOM , $ date ) ; } else { yield 'ccm_date_created' => null ; } $ attributes = $ entry -> getAttributes ( ) ; foreach ( $ attributes as $ attribute ) { yield $ attribute -> getAttributeKey ( ) -> getAttributeKeyHandle ( ) => $ attribute -> getPlainTextValue ( ) ; } }
Turn an Entry into an array
@param \Concrete\Core\Entity\Express\Entry $entry
@return array
Turn an Entry into an array