Skip to content

Kirby 5.0.4

$segment->resolve()

Automatically resolves the segment depending on the segment position and the type of the base

$segment->resolve(mixed $base = null, object|array $data = [ ]): mixed

Parameters

Name Type Default Description
$base mixed null Current value of the query chain
$data objectorarray [ ]

Return type

mixed

This method modifies the existing $segment object it is applied to and returns it again.

Parent class

Kirby\Query\Segment