You are here

public function DeployManager::getCurrentHost in Default Content Deploy 8

Gets host of current site.

Return value

string

File

src/DeployManager.php, line 152

Class

DeployManager

Namespace

Drupal\default_content_deploy

Code

public function getCurrentHost() {
  $protocol = $this->request
    ->getScheme();
  $host = $this->request
    ->getHttpHost();
  return "{$protocol}://{$host}";
}