lib/helpers/Format.php
function getCurrency(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      $args = $this->parseArguments($helper->render($value), 'value', [
        'currency' => null,
        'options' => [],
        'textOptions' => []
      ]);

      return HtmlHelper::encode(\Yii::$app->formatter->asCurrency(
        $args['value'],
        $args['currency'],
        $args['options'],
        $args['textOptions']
      ));
    };
  }
function getCurrency(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      $args = $this->parseArguments($helper->render($value), 'value', [
        'currency' => null,
        'options' => [],
        'textOptions' => []
      ]);

      return HtmlHelper::encode(\Yii::$app->formatter->asCurrency(
        $args['value'],
        $args['currency'],
        $args['options'],
        $args['textOptions']
      ));
    };
  }
function getCurrency ( ) : \ Closure { return function ( $ value , \ Mustache_LambdaHelper $ helper ) { $ args = $ this -> parseArguments ( $ helper -> render ( $ value ) , 'value' , [ 'currency' => null , 'options' => [ ] , 'textOptions' => [ ] ] ) ; return HtmlHelper :: encode ( \ Yii :: $ app -> formatter -> asCurrency ( $ args [ 'value' ] , $ args [ 'currency' ] , $ args [ 'options' ] , $ args [ 'textOptions' ] ) ) ; } ; }
Returns a helper function formatting a value as currency number.
@return \Closure A function formatting a value as currency number.
Returns a helper function formatting a value as currency number .