public function Route::setHost

Same name in this branch

Sets the pattern for the host.

This method implements a fluent interface.

Parameters

string $pattern The host pattern:

Return value

Route The current Route instance

1 call to Route::setHost()
Route::__construct in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php
Constructor.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php, line 199

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function setHost($pattern) {
  $this->host = (string) $pattern;
  $this->compiled = null;
  return $this;
}