src/Backend/Modules/Commerce/Form/DataTransformer/MoneyToLocalizedStringTransformer.php
/**
     * Transforms a normalized format into a localized money string that can be rendered in the form.
     */
Transforms a normalized format into a localized money string that can be rendered in the form.
Transforms a normalized format into a localized money string that can be rendered in the form .
public function transform($value): ?string
    {
        if ($value === null) {
            return null;
        }
        $moneyFormatter = new DecimalMoneyFormatter($this->currencies);
        return parent::transform($moneyFormatter->format($value));
    }
public function transform ( $ value ) : ? string { if ( $ value === null ) { return null ; } $ moneyFormatter = new DecimalMoneyFormatter ( $ this -> currencies ) ; return parent :: transform ( $ moneyFormatter -> format ( $ value ) ) ; }
Transforms a normalized format into a localized money string that can be rendered in the form.
Transforms a normalized format into a localized money string that can be rendered in the form .
/** @var Money|null $value */