You are here

protected function InstagramApiTrait::httpClient in Instagram Feeds 8

Returns the Guzzle HTTP Client.

Return value

\GuzzleHttp\Client

File

src/InstagramApiTrait.php, line 86

Class

InstagramApiTrait
Instagram API Trait.

Namespace

Drupal\instagram_feeds

Code

protected function httpClient() : Client {
  if (!isset($this->httpClient)) {
    $this->httpClient = \Drupal::httpClient();
  }
  return $this->httpClient;
}