DataTransformerInterface
DataTransformerInterface
interface DataTransformerInterface
Transforms a value between different representations.
Methods
mixed | transform(mixed $value) Transforms a value from the original representation to a transformed representation. | |
mixed | reverseTransform(mixed $value) Transforms a value from the transformed representation to its original representation. |
Details
mixed transform(mixed $value)
Transforms a value from the original representation to a transformed representation.
This method is called on two occasions inside a form field:
- When the form field is initialized wi