public function listColumns($bundle = null)
    {
        $columns = [];
        foreach ($this->_toolbox->attributes($bundle) as $name => $attr) {
            $columns[$name] = [
                'id' => $attr->get('id'),
                'bundle' => $attr->get('bundle'),
                'name' => $name,
                'type' => $attr->get('type'),
                'searchable ' => $attr->get('searchable'),
                'extra ' => $attr->get('extra'),
            ];
        }

        return $columns;
    }
public function listColumns($bundle = null)
    {
        $columns = [];
        foreach ($this->_toolbox->attributes($bundle) as $name => $attr) {
            $columns[$name] = [
                'id' => $attr->get('id'),
                'bundle' => $attr->get('bundle'),
                'name' => $name,
                'type' => $attr->get('type'),
                'searchable ' => $attr->get('searchable'),
                'extra ' => $attr->get('extra'),
            ];
        }

        return $columns;
    }
public function listColumns ( $ bundle = null ) { $ columns = [ ] ; foreach ( $ this -> _toolbox -> attributes ( $ bundle ) as $ name => $ attr ) { $ columns [ $ name ] = [ 'id' => $ attr -> get ( 'id' ) , 'bundle' => $ attr -> get ( 'bundle' ) , 'name' => $ name , 'type' => $ attr -> get ( 'type' ) , 'searchable ' => $ attr -> get ( 'searchable' ) , 'extra ' => $ attr -> get ( 'extra' ) , ] ; } return $ columns ; }
Gets a list of virtual columns attached to this table.

@param string|null $bundle Get attributes within given bundle, or all of them
regardless of the bundle if not provided
@return array Columns information indexed by column name
Gets a list of virtual columns attached to this table .