Field handler which shows the word count for a job or job item.
@ViewsField("tmgmt_wordcount");
Expanded class hierarchy of WordCount
class WordCount extends StatisticsBase {
/**
* {@inheritdoc}
*/
public function render(ResultRow $values) {
$entity = $this
->getEntity($values);
if ($entity instanceof JobInterface && $entity
->isContinuous()) {
return;
}
return $entity
->getWordCount();
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StatisticsBase:: |
public | function | Prefetch statistics for all jobs. | |
WordCount:: |
public | function |