$user->is()
Compares the current object with the given user object
$user->is(Kirby\Cms\User $user = null): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$user |
Kirby\Cms\User |
null |
Return type
bool
Example
<?php if($kirby->user()->is($kirby->user('bastian@example.com'))): ?>
Put some message here.
<?php endif ?>