Skip to content

Kirby 6.0.1

$uri->inherit()

Inherit query, params and fragment from a parent Uri; the Uri's own values win over the parent's

$uri->inherit(Uri|string $parent): Uri

Parameters

Name Type Default
$parentrequired Kirby\Http\Uriorstring no default value

Return type

Kirby\Uuid\Uri

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

Parent class

Kirby\Uuid\Uri inherited from Kirby\Http\Uri