Skip to content

Kirby 6.0.0

Normalizer::normalizeFieldProps()

Normalize field props for a single field

Normalizer::normalizeFieldProps() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

Normalizer::normalizeFieldProps(array|string $props, FieldsRegistry|null $definitions = null): array

Parameters

Name Type Default
$propsrequired arrayorstring no default value
$definitions Kirby\Blueprint\FieldsRegistryornull null

Return type

array

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the field name is missing or the field type is invalid

Parent class

Kirby\Blueprint\Normalizer