Render the field.
$values: The values retrieved from the database.
Overrides FieldPluginBase::render
function render($values) {
$value = $this
->get_value($values);
if ($value) {
switch ($this->options['file_size_display']) {
case 'bytes':
return $value;
case 'formatted':
default:
return format_size($value);
}
}
else {
return '';
}
}