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

Breadcrumb

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

function UriInterface::getScheme

Retrieve the scheme component of the URI.

If no scheme is present, this method MUST return an empty string.

The value returned MUST be normalized to lowercase, per RFC 3986 Section 3.1.

The trailing ":" character is not part of the scheme and MUST NOT be added.

Return value

string The URI scheme.

See also

https://tools.ietf.org/html/rfc3986#section-3.1

1 method overrides UriInterface::getScheme()
Uri::getScheme in vendor/guzzlehttp/psr7/src/Uri.php
Retrieve the scheme component of the URI.

File

vendor/psr/http-message/src/UriInterface.php, line 41

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function getScheme() : string;

API Navigation

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