Symfony\Component\Form\CallbackTransformer::transform
The callback used for forward transform
Signature
private function transform(mixed
$data )
Parameters
$data
— mixed- The value in the original representation
Returns
- mixed
- The value in the transformed representation
Errors/Exceptions
-
UnexpectedTypeException
- when the argument is not a string
-
TransformationFailedException
- when the transformation fails