public function Request::getPathInfo

Returns the path being requested relative to the executed script.

The path info always starts with a /.

Suppose this request is instantiated from /mysite on localhost:

@api

Return value

string The raw path (i.e. not urldecoded)

1 call to Request::getPathInfo()
Request::getUri in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Generates a normalized URI for the Request.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 640

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getPathInfo() {
  if (null === $this->pathInfo) {
    $this->pathInfo = $this
      ->preparePathInfo();
  }
  return $this->pathInfo;
}