public static function EntityFieldHandlerHelper::render in Entity API 7
Render the field.
Implements the entity link functionality and list handling. Basic handling of the single values is delegated back to the field handler.
Parameters
$handler: The field handler whose field should be rendered.
$values: The values for the current row retrieved from the Views query, as an object.
Return value
string The rendered value for the field.
8 calls to EntityFieldHandlerHelper::render()
- entity_views_handler_field_boolean::render in views/
handlers/ entity_views_handler_field_boolean.inc - Render the field.
- entity_views_handler_field_date::render in views/
handlers/ entity_views_handler_field_date.inc - Render the field.
- entity_views_handler_field_duration::render in views/
handlers/ entity_views_handler_field_duration.inc - Render the field.
- entity_views_handler_field_entity::render in views/
handlers/ entity_views_handler_field_entity.inc - Render the field.
- entity_views_handler_field_numeric::render in views/
handlers/ entity_views_handler_field_numeric.inc - Render the field.
File
- views/
handlers/ entity_views_field_handler_helper.inc, line 405 - Contains the EntityFieldHandlerHelper class.
Class
- EntityFieldHandlerHelper
- Helper class containing static implementations of common field handler methods.
Code
public static function render($handler, $values) {
$value = $handler
->get_value($values);
if (is_array($value)) {
return self::render_list($handler, $value, $values);
}
return self::render_entity_link($handler, $value, $values);
}