public function Translator::render

File

src/Plugin/views/field/Translator.php, line 18

Class

Translator
Field handler which shows the operations for a job.

Namespace

Drupal\tmgmt\Plugin\views\field

Code

public function render(ResultRow $values) {

  /** @var \Drupal\tmgmt\JobInterface $job */
  if ($job = $this
    ->getEntity($values)) {
    return $job
      ->getTranslatorLabel();
  }
  return NULL;
}