Skip to content

Kirby 6.0.0

$path->find()

Find one or multiple elements by id

$path->find(string|list ...$keys): string|Path

Parameters

Name Type Default Description
...$keys stringorlist<string> no default value One or more keys, or a single array of keys

Return types

stringorKirby\Http\Path

This method does not modify the existing $path object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Http\Path inherited from Kirby\Toolkit\Collection