You are here

function radioactivity_cron in Radioactivity 8.3

Same name and namespace in other branches
  1. 8.2 radioactivity.module \radioactivity_cron()
  2. 5 radioactivity.module \radioactivity_cron()
  3. 6 radioactivity.module \radioactivity_cron()
  4. 7.2 radioactivity.module \radioactivity_cron()
  5. 7 radioactivity.module \radioactivity_cron()
  6. 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();
}