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

Breadcrumb

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

function Request::getUserInfo

Gets the user info.

Return value

string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server

File

vendor/symfony/http-foundation/Request.php, line 913

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getUserInfo() : ?string {
    $userinfo = $this->getUser();
    $pass = $this->getPassword();
    if ('' != $pass) {
        $userinfo .= ":{$pass}";
    }
    return $userinfo;
}

API Navigation

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