public function attachmentsAsRows()
    {
        $rows = [];

        if ($this->hasAttachments()) {
            $rows = array_chunk($this->attachments()->values(), $this->numColumns);

            /** Map row content with useful front-end properties. */
            array_walk($rows, function(&$value, $key) {
                $value = [
                    'columns' => $value,
                    'isFirst' => $key === 0
                ];
            });
        }

        return $rows;
    }
public function attachmentsAsRows()
    {
        $rows = [];

        if ($this->hasAttachments()) {
            $rows = array_chunk($this->attachments()->values(), $this->numColumns);

            /** Map row content with useful front-end properties. */
            array_walk($rows, function(&$value, $key) {
                $value = [
                    'columns' => $value,
                    'isFirst' => $key === 0
                ];
            });
        }

        return $rows;
    }
public function attachmentsAsRows ( ) { $ rows = [ ] ; if ( $ this -> hasAttachments ( ) ) { $ rows = array_chunk ( $ this -> attachments ( ) -> values ( ) , $ this -> numColumns ) ; /** Map row content with useful front-end properties. */ array_walk ( $ rows , function ( & $ value , $ key ) { $ value = [ 'columns' => $ value , 'isFirst' => $ key === 0 ] ; } ) ; } return $ rows ; }
Retrieve the container's attachments as rows containing columns.

@return array
Retrieve the container s attachments as rows containing columns .