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

Breadcrumb

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

function Route::hasScheme

Checks if a scheme requirement has been set.

File

vendor/symfony/routing/Route.php, line 176

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function hasScheme(string $scheme) : bool {
    return \in_array(strtolower($scheme), $this->schemes, true);
}

API Navigation

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