TaxableType.php in Commerce Core 8.2
File
modules/tax/src/TaxableType.php
View source
<?php
namespace Drupal\commerce_tax;
final class TaxableType {
const PHYSICAL_GOODS = 'physical_goods';
const DIGITAL_GOODS = 'digital_goods';
const SERVICES = 'services';
const EVENTS = 'events';
public static function getLabels() {
return [
self::PHYSICAL_GOODS => t('Physical goods'),
self::DIGITAL_GOODS => t('Digital goods'),
self::SERVICES => t('Services'),
self::EVENTS => t('Events'),
];
}
public static function getDefault() {
return self::PHYSICAL_GOODS;
}
}