You are here

public static function TaxableType::getLabels in Commerce Core 8.2

Gets the labels.

Return value

array An array of labels keyed by taxable type.

1 call to TaxableType::getLabels()
commerce_tax_form_commerce_order_item_type_form_alter in modules/tax/commerce_tax.module
Implements hook_form_FORM_ID_alter() for 'commerce_order_item_type_form'.

File

modules/tax/src/TaxableType.php, line 21

Class

TaxableType
Provides taxable types.

Namespace

Drupal\commerce_tax

Code

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'),
  ];
}