function NodeCounterTimestamp::access

Same name and namespace in other branches
  1. 9 core/modules/statistics/src/Plugin/views/field/NodeCounterTimestamp.php \Drupal\statistics\Plugin\views\field\NodeCounterTimestamp::access()
  2. 8.9.x core/modules/statistics/src/Plugin/views/field/NodeCounterTimestamp.php \Drupal\statistics\Plugin\views\field\NodeCounterTimestamp::access()
  3. 10 core/modules/statistics/src/Plugin/views/field/NodeCounterTimestamp.php \Drupal\statistics\Plugin\views\field\NodeCounterTimestamp::access()

Overrides HandlerBase::access

File

core/modules/statistics/src/Plugin/views/field/NodeCounterTimestamp.php, line 20

Class

NodeCounterTimestamp
Field handler to display the most recent time the node has been viewed.

Namespace

Drupal\statistics\Plugin\views\field

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.