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