$blocks->indexOf()
Correct position detection for objects.
$blocks->indexOf(string|object $object): int
Parameters
Name | Type | Default | Description |
---|---|---|---|
$object |
string |object |
– |
Return type
int
Inherited from
Kirby\Cms\Collection