# $orderPage->getMethod()

> Returns a registered method by name, either from the current class or from a parent class ordered by inheritance order (top to bottom)

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

```php
$orderPage->getMethod(string $method): null|Closure
```

## Parameters

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

## Return type

`null|Closure`

## Parent class

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