class NodeCounterTimestamp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/statistics/src/Plugin/views/field/NodeCounterTimestamp.php \Drupal\statistics\Plugin\views\field\NodeCounterTimestamp
- 9 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
- class \Drupal\views\Plugin\views\field\Date extends \Drupal\views\Plugin\views\field\FieldPluginBase
- class \Drupal\statistics\Plugin\views\field\NodeCounterTimestamp
Expanded class hierarchy of NodeCounterTimestamp
File
- core/
modules/ statistics/ src/ Plugin/ views/ field/ NodeCounterTimestamp.php, line 15
Namespace
Drupal\statistics\Plugin\views\fieldView source
class NodeCounterTimestamp extends Date {
/**
* {@inheritdoc}
*/
public function access(AccountInterface $account) {
return $account
->hasPermission('view post access counter');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Date:: |
protected | property | The date format storage. | |
Date:: |
protected | property | The date formatter service. | |
Date:: |
public | function | ||
Date:: |
public static | function | ||
Date:: |
protected | function | ||
Date:: |
public | function | 1 | |
Date:: |
public | function | Constructs a new Date object. | |
NodeCounterTimestamp:: |
public | function |