src/FieldHandlers/Provider/RenderValue/CurrencyRenderer.php
public static function getIcon(string $key, string $value): string
    {
        $currenciesList = Configure::readOrFail('Currencies.list');
        //Check if the key exist in currencies list else return just the value
        if (!array_key_exists($key, $currenciesList)) {
            return $value;
        }

        return sprintf(static::ICON_HTML, $currenciesList[$key]['description'], $currenciesList[$key]['symbol'], $value);
    }
public static function getIcon(string $key, string $value): string
    {
        $currenciesList = Configure::readOrFail('Currencies.list');
        //Check if the key exist in currencies list else return just the value
        if (!array_key_exists($key, $currenciesList)) {
            return $value;
        }

        return sprintf(static::ICON_HTML, $currenciesList[$key]['description'], $currenciesList[$key]['symbol'], $value);
    }
public static function getIcon ( string $ key , string $ value ) : string { $ currenciesList = Configure :: readOrFail ( 'Currencies.list' ) ; //Check if the key exist in currencies list else return just the value if ( ! array_key_exists ( $ key , $ currenciesList ) ) { return $ value ; } return sprintf ( static :: ICON_HTML , $ currenciesList [ $ key ] [ 'description' ] , $ currenciesList [ $ key ] [ 'symbol' ] , $ value ) ; }
Get Icon html

@param      string  $key    The key
@param      string  $value  The value

@return     string  The icon.
Get Icon html