Normalize the input (typically an object) into an array or a scalar, using the Symfony Serializer normalizer.
See also NormalizerTask for the task equivalent.
- Service:
CleverAge\ProcessBundle\Transformer\Serialization\NormalizeTransformer - Transformer code:
normalize
any: data supported by the configured normalizers (typically an object)
array, string, int, float, bool, \ArrayObject or null: the normalized representation
| Code | Type | Required | Default | Description |
|---|---|---|---|---|
format |
string|null |
null |
Format passed to the normalizer | |
context |
array |
[] |
Normalization context (groups, attributes…) |
- Normalize an object with default options
# Transformer options level
normalize: ~- Normalize an object using serialization groups
# Transformer options level
normalize:
context:
groups: [export]