You are here

public function UsernameEventVariables::getAccount in Hook Event Dispatcher 8

Get the user account.

Return value

\Drupal\user\Entity\User The user account.

File

src/Event/Preprocess/Variables/UsernameEventVariables.php, line 26

Class

UsernameEventVariables
Class UsernameEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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