$productPage->changeSlug()
Changes the slug/uid of the page
$productPage->changeSlug(string $slug, null|string $languageCode = null): Kirby\Cms\Page
Parameters
| Name | Type | Default |
|---|---|---|
$slug |
string |
- |
$languageCode |
null or string |
null |
Return type
Exceptions
| Type | Description |
|---|---|
LogicException |
If the directory cannot be moved |
Parent class
Wagnerwagner\Merx\ProductPage inherited from Kirby\Cms\Page