function commerce_order_field_formatter_info_alter in Commerce Core 8.2
Implements hook_field_formatter_info_alter().
Replaces the commerce_price PriceCalculatedFormatter with the expanded commerce_order one.
File
- modules/
order/ commerce_order.module, line 113 - Defines the Order entity and associated features.
Code
function commerce_order_field_formatter_info_alter(array &$info) {
$info['commerce_price_calculated']['class'] = PriceCalculatedFormatter::class;
$info['commerce_price_calculated']['provider'] = 'commerce_order';
}