Skip to content

Kirby 4.4.1

Segment::factory()

Parses a segment into the property/method name and its arguments

Segment::factory(string $segment, int $position = 0): Kirby\Query\Segment

Parameters

Name Type Default Description
$segment * string
$position int 0 String position of the segment inside the full query

Return type

Kirby\Query\Segment

Parent class

Kirby\Query\Segment