public function Url::getPathSegments

Get the path segments of the URL as an array

Return value

array

1 call to Url::getPathSegments()
Url::normalizePath in drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php
Normalize the URL so that double slashes and relative paths are removed

File

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

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 getPathSegments() {
  return array_slice(explode('/', $this
    ->getPath()), 1);
}