OptionsField::resolve()
Resolves a field type to its class name
OptionsField::resolve(string $type, string|null $name = null): class-string
Parameters
| Name | Type | Default |
|---|---|---|
| $typerequired | string |
no default value |
| $name | stringornull |
null
|
Return type
class-string<Kirby\Form\Field>
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
if the type is unknown, not a field class or its constructor does not accept all props |
Parent class
Kirby\Form\Field\OptionsField
inherited from Kirby\Form\Field