# TaxRulesField::resolve()

> Resolves a field type to its class name

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

```php
TaxRulesField::resolve(string $type, null|string $name = null): class-string<static>
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$type` | `string` | `–` |
| `$name` | `null\|string` | `null` |

## Return type

`class-string<static>`

## Exceptions

| Type | Description |
| --- | --- |
| `InvalidArgumentException` | if the type is unknown, not a field class or its constructor does not accept all props |

## Parent class

`Wagnerwagner\Merx\TaxRulesField` inherited from `Kirby\Form\Field`
