Skip to content

Kirby 5.1.2

$assets->find()

Find one or multiple elements by id

$assets->find(string ...$keys): Kirby\Plugin\Asset|Kirby\Plugin\Assets

Parameters

Name Type Default
...$keys string no default value

Return types

Kirby\Plugin\AssetorKirby\Plugin\Assets

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

Parent class

Kirby\Plugin\Assets inherited from Kirby\Toolkit\Collection