You are here

public function RequestContext::getCompleteBaseUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Routing/RequestContext.php \Drupal\Core\Routing\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 58
Contains \Drupal\Core\Routing\RequestContext.

Class

RequestContext
Holds information about the current request.

Namespace

Drupal\Core\Routing

Code

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