You are here

public function CronHandler::importInstagramPosts in Instagram Feeds 8

Cron handler to import Instagram posts for all configured accounts.

Return value

$this

File

src/CronHandler.php, line 129

Class

CronHandler
Instagram Feeds Cron Handler Service.

Namespace

Drupal\instagram_feeds

Code

public function importInstagramPosts() {
  foreach ($this
    ->getInstagramAccounts() as $account) {
    $this
      ->processAccount($account);
  }
  return $this;
}