You are here

protected function DomainContentController::getUser in Domain Access 8

Returns a fully loaded user object for the current request.

Return value

\Drupal\Core\Session\AccountInterface The current user object.

1 call to DomainContentController::getUser()
DomainContentController::buildList in domain_content/src/Controller/DomainContentController.php
Builds the list of domains and relevant entities.

File

domain_content/src/Controller/DomainContentController.php, line 119

Class

DomainContentController
Controller routines domain content pages.

Namespace

Drupal\domain_content\Controller

Code

protected function getUser() {
  $account = $this
    ->currentUser();

  // Advanced grants for edit/delete require permissions.
  return \Drupal::entityTypeManager()
    ->getStorage('user')
    ->load($account
    ->id());
}