# $productPage->hasMethod()

> Checks if the object has a registered custom method

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

```php
$productPage->hasMethod(string $method): bool
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$method` | `string` | `–` |

## Return type

`bool`

## Parent class

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