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