public function Language::render

Same name in this branch

Overrides Drupal\taxonomy\Plugin\views\field\Taxonomy::render().

Overrides Taxonomy::render

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/Language.php, line 22
Definition of Drupal\taxonomy\Plugin\views\field\Language.

Class

Language
Field handler to show the language of a taxonomy term.

Namespace

Drupal\taxonomy\Plugin\views\field

Code

public function render($values) {
  $value = $this
    ->getValue($values);
  $language = language_load($value);
  $value = $language ? $language->name : '';
  return $this
    ->render_link($this
    ->sanitizeValue($value), $values);
}