You are here

public static function RulesDataUICommercePrice::render in Commerce Core 7

Render the configured value.

Return value

array A renderable array.

Overrides RulesDataDirectInputFormInterface::render

File

modules/price/commerce_price.rules.inc, line 121
Rules integration for the Price module.

Class

RulesDataUICommercePrice
Defines a commerce_price input form for Rules actions altering price fields.

Code

public static function render($value) {
  return array(
    'content' => array(
      '#markup' => commerce_currency_format($value['amount'], $value['currency_code']),
    ),
  );
}