original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Gets a list of virtual columns attached to this table .