/**
  * @param ForestCollection $collection
  * @return array
  */
 public function getAttributes($collection)
 {
     $ret = array();
     $ret['name'] = $collection->getName();
     $ret['fields'] = $collection->getFields();
     if ($collection->getActions()) {
         $ret['actions'] = $collection->getActions();
     }
     $ret['only-for-relationships'] = null;
     $ret['is-virtual'] = null;
     $ret['is-read-only'] = false;
     $ret['is-searchable'] = true;
     return $ret;
 }