code: public function view($vars = array()) {
  
  		$output = '';
  
  		$vars['entity'] = $this->entity;
  
  		foreach ($this->fields as $field) {
  			if (!$field instanceof Field) {
  				continue;
  			}
  			if ($field->getOutputView() === false) {
  				continue;
  			}
  			if ($field->getType() == 'hidden' || $field->getValueType() == 'hidden') {
  				continue;
  			}
  			
  			if ($field->isHiddenOnProfile()) {
  				continue;
  			}
  
  			$field_view = $field->viewOutput($vars);
  			if ($field_view) {
  				$output .= elgg_format_element('div', array(
  					'class' => 'prototyper-output',
  						), $field_view);
  			}
  		}
  
  		return $output;
  	}
docs: Render an entity profile
  
  @param array $vars Vars to pass to teach field view
  @return string HTML