public function RequestContext::getCompleteBaseUrl

public 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 53

Class

RequestContext
Holds information about the current request.

Namespace

Drupal\Core\Routing

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RequestContext.php/function/RequestContext::getCompleteBaseUrl/8.1.x