$layoutColumns->indexOf()
Correct position detection for objects. The method will automatically detect objects or ids and then search accordingly.
$layoutColumns->indexOf(string|Kirby\Cms\LayoutColumn $needle): int|false
Parameters
Name | Type | Default |
---|---|---|
$needlerequired | string orKirby\Cms\LayoutColumn |
no default value |
Return types
int
orfalse
This method modifies the existing $layoutcolumns
object it is applied to and returns it again.
Parent class
Kirby\Cms\LayoutColumns
inherited from Kirby\Cms\Collection