1 views_handler_field_vocabulary.inc views_handler_field_vocabulary::render($values)

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

File

core/modules/taxonomy/views/views_handler_field_vocabulary.inc, line 9

Class

views_handler_field_vocabulary
Field handler to show the human-readable label of a vocabulary.

Code

function render($values) {
  // Check there is an actual value, as on a relationship there may not be.
  if ($vocabulary_name = $this->get_value($values)) {
    $vocabulary = taxonomy_vocabulary_load($vocabulary_name);
    if ($vocabulary) {
      return check_plain($vocabulary->name);
    }
  }
}