Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RouteCollection.php

function RouteCollection::setSchemes

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

Parameters

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

File

vendor/symfony/routing/RouteCollection.php, line 310

Class

RouteCollection
A RouteCollection represents a set of Route instances.

Namespace

Symfony\Component\Routing

Code

public function setSchemes(string|array $schemes) : void {
    foreach ($this->routes as $route) {
        $route->setSchemes($schemes);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal