$path->set()
Adds a new element to the collection
$path->set(array|string $key, string|null $value = null): Kirby\Http\Path
Parameters
Name | Type | Default |
---|---|---|
$keyrequired | array orstring |
no default value |
$value | string ornull |
null
|
Return type
This method modifies the existing $
object it is applied to and returns it again.
Parent class
Kirby\Http\Path
inherited from Kirby\Toolkit\Collection