public function NodeCounter::fields in Drupal 10
Same name in this branch
- 10 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::fields()
- 10 core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php \Drupal\statistics\Plugin\migrate\destination\NodeCounter::fields()
Same name and namespace in other branches
- 8 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::fields()
- 9 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::fields()
Returns available fields on the source.
Return value
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
Overrides MigrateSourceInterface::fields
File
- core/
modules/ statistics/ src/ Plugin/ migrate/ source/ NodeCounter.php, line 32
Class
- NodeCounter
- Drupal 6/7 node counter source from database.
Namespace
Drupal\statistics\Plugin\migrate\sourceCode
public function fields() {
return [
'nid' => $this
->t('The node ID.'),
'totalcount' => $this
->t('The total number of times the node has been viewed.'),
'daycount' => $this
->t('The total number of times the node has been viewed today.'),
'timestamp' => $this
->t('The most recent time the node has been viewed.'),
];
}