You are here

price_difference_formatter.module in Price Difference Formatter 8

File

price_difference_formatter.module
View source
<?php

/**
 * Implements hook_theme().
 */
function price_difference_formatter_theme($existing, $type, $theme, $path) {
  return [
    'price_difference_formatter' => [
      'variables' => [
        'original_price' => NULL,
        'final_price' => NULL,
        'discount_percentage' => NULL,
        'discount_currency' => NULL,
        'adjustments' => NULL,
      ],
    ],
  ];
}

Functions