$blocks->indexOf()
Correct position detection for objects.
$blocks->indexOf(string|object $needle): int
Parameters
| Name | Type | Default |
|---|---|---|
| $needle * | string|object |
– |
Return type
int
Parent class
Kirby\Cms\Blocks inherited from Kirby\Cms\Collection