public function Client::getBaseUrl

Get the client's base URL as either an expanded or raw URI template

Parameters

bool $expand Set to FALSE to get the raw base URL without URI template expansion:

Return value

string|null

Overrides ClientInterface::getBaseUrl

1 call to Client::getBaseUrl()
Client::createRequest in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Create and return a new { Use an absolute path to override the base path of the client, or a relative path to append to the base path of the client. The URI can contain the query string as well. Use an array to provide a URI template and…

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php, line 272

Class

Client
HTTP client

Namespace

Guzzle\Http

Code

public function getBaseUrl($expand = true) {
  return $expand ? $this
    ->expandTemplate($this->baseUrl) : $this->baseUrl;
}