You are here

public function fieldable_panels_panes_handler_field_bundle::render in Fieldable Panels Panes (FPP) 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

plugins/views/fieldable_panels_panes_handler_field_bundle.inc, line 41
Provide views handlers for fieldable panel panes fields.

Class

fieldable_panels_panes_handler_field_bundle
Field handler to translate a node type into its readable form.

Code

public function render($values) {
  $value = $this
    ->get_value($values);
  if (!$this->options['machine_name']) {
    $value = fieldable_panels_panes_get_bundle_label($value);
  }
  return $this
    ->sanitize_value($value);
}