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

Breadcrumb

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

function UriInterface::getHost

Retrieve the host component of the URI.

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

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

Return value

string The URI host.

See also

http://tools.ietf.org/html/rfc3986#section-3.2.2

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

File

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

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function getHost() : string;

API Navigation

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