public function RequestContext::setHost

Sets the HTTP host.

@api

Parameters

string $host The HTTP host:

1 call to RequestContext::setHost()
RequestContext::fromRequest in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php, line 160

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function setHost($host) {
  $this->host = $host;
}