function instagram_feeds_cron in Instagram Feeds 8
Same name and namespace in other branches
- 7 instagram_feeds.module \instagram_feeds_cron()
Implements hook_cron().
File
- ./
instagram_feeds.module, line 29 - Hooks and custom functions for instagram_feeds module.
Code
function instagram_feeds_cron() {
/** @var Drupal\instagram_feeds\CronHandler $cron_handler */
$cron_handler = Drupal::service('instagram_feeds.cron_handler');
$cron_handler
->refreshTokens()
->importInstagramPosts();
}