$user->isCurrent()

Checks if the user is the currently logged in user.

  • return (boolean)

Example

<?php if($site->user('bastian')->isCurrent()): ?>
Bastian is the currently logged in user.
<?php endif ?>