Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
novicell/status_feed / status_feed.module
Size: Mime:
<?php

/**
 * Implements hook_cron().
 */
function status_feed_cron() {
  /** @var \Drupal\status_feed\DataCollectorCron $data_collector_cron */
  $data_collector_cron = \Drupal::service('status_feed.cron');

  $settings = \Drupal::config('status_feed.settings');

  if (!empty($settings->get('activate_cron'))) {
    $data_collector_cron->run();
  }
}