Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Client.php

function Client::getConfig

Get a client configuration option.

These options include default request options of the client, a "handler" (if utilized by the concrete client), and a "base_uri" if utilized by the concrete client.

Parameters

string|null $option The config option to retrieve.:

Return value

mixed

Overrides ClientInterface::getConfig

Deprecated

Client::getConfig will be removed in guzzlehttp/guzzle:8.0.

File

vendor/guzzlehttp/guzzle/src/Client.php, line 205

Class

Client
@final

Namespace

GuzzleHttp

Code

public function getConfig(?string $option = null) {
    return $option === null ? $this->config : $this->config[$option] ?? null;
}
RSS feed
Powered by Drupal