function radioactivity_cron in Radioactivity 8.3
Same name and namespace in other branches
- 8.2 radioactivity.module \radioactivity_cron()
- 5 radioactivity.module \radioactivity_cron()
- 6 radioactivity.module \radioactivity_cron()
- 7.2 radioactivity.module \radioactivity_cron()
- 7 radioactivity.module \radioactivity_cron()
- 4.0.x radioactivity.module \radioactivity_cron()
Implements hook_cron().
File
- ./
radioactivity.module, line 104 - Provides a field type which can be used as a hotness metric.
Code
function radioactivity_cron() {
/** @var \Drupal\radioactivity\RadioactivityProcessorInterface $processor */
$processor = \Drupal::service('radioactivity.processor');
$processor
->processDecay();
$processor
->processIncidents();
}