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

Breadcrumb

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

function UriInterface::getUserInfo

Retrieve the user information component of the URI.

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

If a user is present in the URI, this will return that value; additionally, if the password is also present, it will be appended to the user value, with a colon (":") separating the values.

The trailing "@" character is not part of the user information and MUST NOT be added.

Return value

string The URI user information, in "username[:password]" format.

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

File

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

Class

UriInterface
Value object representing a URI.

Namespace

Psr\Http\Message

Code

public function getUserInfo() : string;

API Navigation

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