You are here

protected function Check::currentUser in Security Review 8

Returns the current Drupal user.

Return value

\Drupal\Core\Session\AccountProxy Current Drupal user.

File

src/Check.php, line 478

Class

Check
Defines a security check.

Namespace

Drupal\security_review

Code

protected function currentUser() {
  return $this->container
    ->get('current_user');
}