Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Request.php

function Request::getRequestUri

Returns the requested URI (path and query string).

Return value

string The raw URI (i.e. not URI decoded)

3 calls to Request::getRequestUri()
Request::prepareBaseUrl in vendor/symfony/http-foundation/Request.php
Prepares the base URL.
Request::preparePathInfo in vendor/symfony/http-foundation/Request.php
Prepares the path info.
Request::__toString in vendor/symfony/http-foundation/Request.php

File

vendor/symfony/http-foundation/Request.php, line 947

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getRequestUri() : string {
    return $this->requestUri ??= $this->prepareRequestUri();
}
RSS feed
Powered by Drupal