Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 931 Bytes

constant_transformer.md

File metadata and controls

38 lines (27 loc) · 931 Bytes

ConstantTransformer

Always return the configured value, whatever the input. Inside a MappingTransformer, the constant property option usually does the same job; this transformer is useful elsewhere (e.g. in a TransformerTask or in a transformer chain).

Transformer reference

  • Service: CleverAge\ProcessBundle\Transformer\ConstantTransformer
  • Transformer code: constant

Accepted inputs

any: the input is ignored.

Possible outputs

any: the configured constant.

Options

Code Type Required Default Description
constant any X The value to return

Examples

# Transformer options level
constant:
  constant: default_value