StatisticsNumeric.php
Same filename in other branches
Namespace
Drupal\statistics\Plugin\views\fieldFile
-
core/
modules/ statistics/ src/ Plugin/ views/ field/ StatisticsNumeric.php
View source
<?php
namespace Drupal\statistics\Plugin\views\field;
use Drupal\views\Attribute\ViewsField;
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
*/
class StatisticsNumeric extends NumericField {
/**
* {@inheritdoc}
*/
public function access(AccountInterface $account) {
return $account->hasPermission('view post access counter');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
StatisticsNumeric | Field handler to display numeric values from the statistics module. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.