original_string: protected function getWidgetCollection(array $items)
      {
          if (empty($items)) {
              return '';
          }
  
          $item = reset($items);
  
          $data = array(
              'items' => $items,
              'title' => $item['collection_item']['collection_title'],
              'collection_id' => $item['collection_item']['collection_id']
          );
  
          return $this->render($item['collection_handler']['template']['list'], $data, true);
      }
code: protected function getWidgetCollection(array $items)
      {
          if (empty($items)) {
              return '';
          }
  
          $item = reset($items);
  
          $data = array(
              'items' => $items,
              'title' => $item['collection_item']['collection_title'],
              'collection_id' => $item['collection_item']['collection_id']
          );
  
          return $this->render($item['collection_handler']['template']['list'], $data, true);
      }
code_tokens: protected function getWidgetCollection ( array $ items ) { if ( empty ( $ items ) ) { return '' ; } $ item = reset ( $ items ) ; $ data = array ( 'items' => $ items , 'title' => $ item [ 'collection_item' ] [ 'collection_title' ] , 'collection_id' => $ item [ 'collection_item' ] [ 'collection_id' ] ) ; return $ this -> render ( $ item [ 'collection_handler' ] [ 'template' ] [ 'list' ] , $ data , true ) ; }
docstring: Returns a rendered collection
  @param array $items
  @return string
docstring_tokens: Returns a rendered collection