public function UsernameEventVariables::userIsAnonymous in Hook Event Dispatcher 8
Whether the user is anonymous or not.
Return value
bool Is it?
File
- src/
Event/ Preprocess/ Variables/ UsernameEventVariables.php, line 16
Class
- UsernameEventVariables
- Class UsernameEventVariables.
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\VariablesCode
public function userIsAnonymous() {
return $this
->getAccount()
->isAnonymous();
}