class NodeCounterTimestamp

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

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

Plugin annotation

@ViewsField("node_counter_timestamp");

Hierarchy

Expanded class hierarchy of NodeCounterTimestamp

Related topics

File

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

Namespace

Drupal\statistics\Plugin\views\field
View source
class NodeCounterTimestamp extends Date {
  
  /**
   * {@inheritdoc}
   */
  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.