Skip to content

Kirby 5.0.4

$menu->isCurrent()

Whether the menu entry should receive aria-current

$menu->isCurrent() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$menu->isCurrent(string $id, Closure|bool|null $callback = null): bool

Parameters

Name Type Default
$idrequired string no default value
$callback Closureorboolornull null

Return type

bool

This method modifies the existing $menu object it is applied to and returns it again.

Parent class

Kirby\Panel\Menu