$api->parent()
Returns the model's object for the given path
$api->parent(string $path): Kirby\Cms\Model|nullParameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $path * | string | – | Path to parent model | 
Return type
Kirby\Cms\Model|null
Exceptions
| Type | Description | 
|---|---|
| Kirby\Exception\InvalidArgumentException | if the model type is invalid | 
| Kirby\Exception\NotFoundException | if the model cannot be found |