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

Breadcrumb

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

function Request::getBaseUrlReal

Returns the real base URL received by the webserver from which this request is executed. The URL does not include trusted reverse proxy prefix.

Return value

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

2 calls to Request::getBaseUrlReal()
Request::getBaseUrl in vendor/symfony/http-foundation/Request.php
Returns the root URL from which this request is executed.
Request::preparePathInfo in vendor/symfony/http-foundation/Request.php
Prepares the path info.

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

private function getBaseUrlReal() : string {
    return $this->baseUrl ??= $this->prepareBaseUrl();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal