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

Breadcrumb

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

function UriInterface::getAuthority

Retrieve the authority component of the URI.

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

The authority syntax of the URI is:

<pre> [user-info@]host[:port] </pre>

If the port component is not set or is the standard port for the current scheme, it SHOULD NOT be included.

Return value

string The URI authority, in "[user-info@]host[:port]" format.

See also

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

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

File

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

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function getAuthority() : string;

API Navigation

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