FormNormalizerInterface
- interface FormNormalizerInterface
-
- Fully qualified name
-
\Denkwerk\
Mosparo Form\ Form Normalizer\ Form Normalizer Interface
Interface for normalizing form POST data into a
Normalized
object, used by mosparo for validation.Data - supports ( ?MosparoFormDefinitionInterface $formDefinition) : bool
-
Returns whether this normalizer supports processing the given form definition.
- param MosparoFormDefinitionInterface|null $formDefinition
-
The form definition to check.
- returntype
-
bool
- normalize ( array $postData, MosparoFormDefinitionInterface $formDefinition) : NormalizedData
-
Normalize the raw POST data according to the form definition and return a
Normalized
instance ready for mosparo validation.Data - param array<int|string, mixed> $postData
-
The raw
$_
data.POST - param MosparoFormDefinitionInterface $formDefinition
-
The form structure definition.
- returntype
-
NormalizedData