function bat_options_price_options in Booking and Availability Management Tools for Drupal 8
Same name and namespace in other branches
- 7 modules/bat_options/bat_options.module \bat_options_price_options()
Returns the available price options for booking_unit options field.
2 calls to bat_options_price_options()
- BatOption::processBatOption in modules/
bat_options/ src/ Element/ BatOption.php - BatTypeOptions::isEmpty in modules/
bat_options/ src/ Plugin/ Field/ FieldType/ BatTypeOptions.php - Determines whether the data structure is empty.
File
- modules/
bat_options/ bat_options.module, line 24
Code
function bat_options_price_options() {
$options = [
BAT_OPTIONS_ADD => t('Add to price'),
BAT_OPTIONS_ADD_DAILY => t('Add to price per night'),
BAT_OPTIONS_SUB => t('Subtract from price'),
BAT_OPTIONS_SUB_DAILY => t('Subtract from price per night'),
BAT_OPTIONS_REPLACE => t('Replace price'),
BAT_OPTIONS_INCREASE => t('Increase price by % amount'),
BAT_OPTIONS_DECREASE => t('Decrease price by % amount'),
BAT_OPTIONS_NOCHARGE => t('No charge'),
];
return $options;
}