Repository URL to install this package:
|
Version:
1.0.5 ▾
|
novicell/status_feed
/
status_feed.module
|
|---|
<?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();
}
}