You are here

function linkchecker_cron in Link checker 8

Same name and namespace in other branches
  1. 5.2 linkchecker.module \linkchecker_cron()
  2. 5 linkchecker.module \linkchecker_cron()
  3. 6.2 linkchecker.module \linkchecker_cron()
  4. 7 linkchecker.module \linkchecker_cron()

Implements hook_cron().

File

./linkchecker.module, line 140
This module periodically check links in given node types, blocks etc.

Code

function linkchecker_cron() {
  \Drupal::service('linkchecker.extractor_batch')
    ->processEntities();
  \Drupal::service('linkchecker.checker')
    ->queueLinks();
}