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

Breadcrumb

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

function Request::getUser

Returns the user.

1 call to Request::getUser()
Request::getUserInfo in vendor/symfony/http-foundation/Request.php
Gets the user info.

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getUser() : ?string {
    return $this->headers
        ->get('PHP_AUTH_USER');
}

API Navigation

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