Skip to content

Kirby 6.0.0

LineField::resolve()

Resolves a field type to its class name

LineField::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\LineField inherited from Kirby\Form\Field