public function Url::getPath

Get the path part of the URL

Return value

string

3 calls to Url::getPath()
Url::addPath in drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php
Add a relative path to the currently set path
Url::getParts in drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php
Get the parts of the URL as an array
Url::getPathSegments in drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php
Get the path segments of the URL as an array

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php, line 356

Class

Url
Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.

Namespace

Guzzle\Http

Code

public function getPath() {
  return $this->path ?: '/';
}