You are here

public function Request::getUser in RESTful 7.2

Returns the user.

Return value

string|null

Overrides RequestInterface::getUser

File

src/Http/Request.php, line 474
Contains \Drupal\restful\Http\Request

Class

Request
Deals with everything coming from the consumer.

Namespace

Drupal\restful\Http

Code

public function getUser() {
  list($account, ) = static::getCredentials();
  return $account;
}