public function WordCount::render

Same name in this branch
  1. 8.x-1.x src/Plugin/views/field/WordCount.php \Drupal\tmgmt\Plugin\views\field\WordCount::render()
  2. 8.x-1.x translators/tmgmt_local/src/Plugin/views/field/WordCount.php \Drupal\tmgmt_local\Plugin\views\field\WordCount::render()

File

translators/tmgmt_local/src/Plugin/views/field/WordCount.php, line 18

Class

WordCount
Field handler which shows the word count for a job or job item.

Namespace

Drupal\tmgmt_local\Plugin\views\field

Code

public function render(ResultRow $values) {

  /** @var \Drupal\tmgmt_local\LocalTaskInterface $entity */
  $entity = $values->_entity;
  return $entity
    ->getWordCount();
}