public function DeployManager::getCurrentHost in Default Content Deploy 8
Gets host of current site.
Return value
string
File
- src/
DeployManager.php, line 152
Class
Namespace
Drupal\default_content_deployCode
public function getCurrentHost() {
$protocol = $this->request
->getScheme();
$host = $this->request
->getHttpHost();
return "{$protocol}://{$host}";
}