StatisticsNumeric.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\statistics\Plugin\views\fieldFile
core/modules/statistics/src/Plugin/views/field/StatisticsNumeric.phpView source
<?php
namespace Drupal\statistics\Plugin\views\field;
use Drupal\views\Plugin\views\field\NumericField;
use Drupal\Core\Session\AccountInterface;
/**
* Field handler to display numeric values from the statistics module.
*
* @ingroup views_field_handlers
*
* @ViewsField("statistics_numeric")
*/
class StatisticsNumeric extends NumericField {
/**
* {@inheritdoc}
*/
public function access(AccountInterface $account) {
return $account
->hasPermission('view post access counter');
}
}
Classes
Name | Description |
---|---|
StatisticsNumeric | Field handler to display numeric values from the statistics module. |