Field handler which shows the file count for a job or job item.
@ViewsField("tmgmt_filecount");
Expanded class hierarchy of FileCount
class FileCount extends StatisticsBase {
/**
* {@inheritdoc}
*/
public function render(ResultRow $values) {
$entity = $this
->getEntity($values);
return $entity
->getFileCount();
}
/**
* {@inheritdoc}
*/
public function access(AccountInterface $account) {
if (!\Drupal::service('plugin.manager.tmgmt.translator')
->supportsFiles()) {
return FALSE;
}
return parent::access($account);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileCount:: |
public | function | ||
FileCount:: |
public | function | ||
StatisticsBase:: |
public | function | Prefetch statistics for all jobs. |