$user->is()
Compares the current object with the given user object
$user->is(Kirby\Cms\User|null $user = null): bool
Parameters
Name | Type | Default |
---|---|---|
$user | Kirby\Cms\User ornull |
null
|
Return type
bool
This method modifies the existing $user
object it is applied to and returns it again.
Parent class
Examples
<?php if ($kirby->user()->is($kirby->user('bastian@example.com'))): ?>
Put some message here.
<?php endif ?>