protected function drawBackOfficeCurrencyInput($inputKey)
    {
        $currencies = CurrencyQuery::create()->find();

        $cleanedCurrencies = [];

        /** @var Currency $currency */
        foreach ($currencies as $currency) {
            $cleanedCurrencies[$currency->getCode()] = $currency->getSymbol();
        }

        return $this->facade->getParser()->render(
            'coupon/condition-fragments/currency-selector.html',
            [
                'currencies' => $cleanedCurrencies,
                'value'      => isset($this->values[$inputKey]) ? $this->values[$inputKey] : '',
                'inputKey'   => $inputKey
            ]
        );
    }
protected function drawBackOfficeCurrencyInput($inputKey)
    {
        $currencies = CurrencyQuery::create()->find();

        $cleanedCurrencies = [];

        /** @var Currency $currency */
        foreach ($currencies as $currency) {
            $cleanedCurrencies[$currency->getCode()] = $currency->getSymbol();
        }

        return $this->facade->getParser()->render(
            'coupon/condition-fragments/currency-selector.html',
            [
                'currencies' => $cleanedCurrencies,
                'value'      => isset($this->values[$inputKey]) ? $this->values[$inputKey] : '',
                'inputKey'   => $inputKey
            ]
        );
    }
protected function drawBackOfficeCurrencyInput ( $ inputKey ) { $ currencies = CurrencyQuery :: create ( ) -> find ( ) ; $ cleanedCurrencies = [ ] ; /** @var Currency $currency */ foreach ( $ currencies as $ currency ) { $ cleanedCurrencies [ $ currency -> getCode ( ) ] = $ currency -> getSymbol ( ) ; } return $ this -> facade -> getParser ( ) -> render ( 'coupon/condition-fragments/currency-selector.html' , [ 'currencies' => $ cleanedCurrencies , 'value' => isset ( $ this -> values [ $ inputKey ] ) ? $ this -> values [ $ inputKey ] : '' , 'inputKey' => $ inputKey ] ) ; }
Draw the currency input displayed in the BackOffice
allowing Admin to set its Coupon Conditions

@param string $inputKey Input key (ex: self::INPUT1)

@return string HTML string
Draw the currency input displayed in the BackOffice allowing Admin to set its Coupon Conditions