You are here

public function UsernameEventVariables::getAccount in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Variables/UsernameEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\UsernameEventVariables::getAccount()

Get the user account.

Return value

\Drupal\user\UserInterface The user account.

File

modules/preprocess_event_dispatcher/src/Variables/UsernameEventVariables.php, line 28

Class

UsernameEventVariables
Class UsernameEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getAccount() : UserInterface {
  return $this->variables['account'];
}