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

Breadcrumb

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

function RequestContext::getCompleteBaseUrl

Gets the scheme, host and base path.

For example, in an installation in a subdirectory "d8", it should be "https://example.com/d8".

File

core/lib/Drupal/Core/Routing/RequestContext.php, line 50

Class

RequestContext
Holds information about the current request.

Namespace

Drupal\Core\Routing

Code

public function getCompleteBaseUrl() {
    return $this->completeBaseUrl;
}

API Navigation

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