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

Breadcrumb

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

function RequestContext::getHost

Gets the HTTP host.

The host is always lowercased because it must be treated case-insensitive.

File

vendor/symfony/routing/RequestContext.php, line 158

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

public function getHost() : string {
    return $this->host;
}

API Navigation

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