$layouts->nth()
Returns the nth element from the collection
$layouts->nth(int $n): Kirby\Cms\Layout|null
Parameters
| Name | Type | Default |
|---|---|---|
| $nrequired | int |
no default value |
Return types
Kirby\Cms\Layoutornull
This method modifies the existing $layouts object it is applied to and returns it again.
Parent class
Kirby\Cms\Layouts
inherited from Kirby\Toolkit\Collection