# $productPage->slug()

> Returns the slug of the page

- Source: `src/Cms/Page.php#L1154` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Page.php#L1154>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$productPage->slug(null|string $languageCode = null): string
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$languageCode` | `null\|string` | `null` |

## Return type

`string`

## Parent class

`Wagnerwagner\Merx\ProductPage` inherited from `Kirby\Cms\Page`
