parentsite
- Ariadne >
- Library >
- Ariadne 2.4 >
- Manuals >
- Programmers Reference >
- Classes >
- Object >
- PINP Methods >
(string) parentsite($site)
Returns the nearest parent site, starting from the given site.
| Argument | Description |
|---|---|
| (string) $site | The path to the starting site. |
parentsite() returns the
path to the nearest parent psite object, starting at the given site path. If no
parent site is found, it will return '/'.

