src/NodePub/Common/Collections/TaggedCollection.php
protected function expand()
    {
        foreach ($this as $key => $item) {
            $item['slug'] = $key;

            if (isset($item['date'])) {
                $item['formatted_date'] = date(self::DATE_FORMAT, $item['date']);
            }

            $this->set($key, $item);
        }
    }
protected function expand()
    {
        foreach ($this as $key => $item) {
            $item['slug'] = $key;

            if (isset($item['date'])) {
                $item['formatted_date'] = date(self::DATE_FORMAT, $item['date']);
            }

            $this->set($key, $item);
        }
    }
protected function expand ( ) { foreach ( $ this as $ key => $ item ) { $ item [ 'slug' ] = $ key ; if ( isset ( $ item [ 'date' ] ) ) { $ item [ 'formatted_date' ] = date ( self :: DATE_FORMAT , $ item [ 'date' ] ) ; } $ this -> set ( $ key , $ item ) ; } }
Expands each collection item with extra data
Expands each collection item with extra data