You are here

class StatisticsNumeric in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/statistics/src/Plugin/views/field/StatisticsNumeric.php \Drupal\statistics\Plugin\views\field\StatisticsNumeric
  2. 9 core/modules/statistics/src/Plugin/views/field/StatisticsNumeric.php \Drupal\statistics\Plugin\views\field\StatisticsNumeric

Field handler to display numeric values from the statistics module.

Plugin annotation

@ViewsField("statistics_numeric");

Hierarchy

  • class \Drupal\views\Plugin\views\field\NumericField extends \Drupal\views\Plugin\views\field\FieldPluginBase

Expanded class hierarchy of StatisticsNumeric

File

core/modules/statistics/src/Plugin/views/field/StatisticsNumeric.php, line 15

Namespace

Drupal\statistics\Plugin\views\field
View source
class StatisticsNumeric extends NumericField {

  /**
   * {@inheritdoc}
   */
  public function access(AccountInterface $account) {
    return $account
      ->hasPermission('view post access counter');
  }

}

Members