Applies transformers to each element of an array.
- Service:
CleverAge\ProcessBundle\Transformer\Array\ArrayMapTransformer - Transformer code:
array_map
array
string
| Code | Type | Required | Default | Description |
|---|---|---|---|---|
transformers |
array |
X | List of transformers, see TransformerTrait | |
skip_null |
bool |
false |
If true continue without applying other transformers on null values |
# Transformer mapping level
array_map:
code:
- '[id]'
- '[firstname]'
- '[lastname]'
transformers:
array_map:
transformers:
cast:
type: 'string'
uppercase: ~