protected function ApacheRequest::preparePathInfo

Prepares the path info.

Return value

string path info

Overrides Request::preparePathInfo

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/ApacheRequest.php, line 47

Class

ApacheRequest
Request represents an HTTP request from an Apache server.

Namespace

Symfony\Component\HttpFoundation

Code

protected function preparePathInfo() {
  return $this->server
    ->get('PATH_INFO') ?: substr($this
    ->prepareRequestUri(), strlen($this
    ->prepareBaseUrl())) ?: '/';
}