public function RouteCollection::setSchemes

Sets the schemes (e.g. 'https') all child routes are restricted to.

Parameters

string|array $schemes The scheme or an array of schemes:

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RouteCollection.php, line 233

Class

RouteCollection
A RouteCollection represents a set of Route instances.

Namespace

Symfony\Component\Routing

Code

public function setSchemes($schemes) {
  foreach ($this->routes as $route) {
    $route
      ->setSchemes($schemes);
  }
}