Get the path segments of the URL as an array
Return value
array
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);
}