protected function Custom::getDisplayLabels in Commerce Core 8.2
Gets the available display labels.
Return value
array The display labels, keyed by machine name.
2 calls to Custom::getDisplayLabels()
- Custom::buildConfigurationForm in modules/
tax/ src/ Plugin/ Commerce/ TaxType/ Custom.php - Form constructor.
- Custom::getDisplayLabel in modules/
tax/ src/ Plugin/ Commerce/ TaxType/ Custom.php - Gets the configured display label.
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ Custom.php, line 340
Class
- Custom
- Provides the Custom tax type.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
protected function getDisplayLabels() {
return [
'tax' => $this
->t('Tax'),
'vat' => $this
->t('VAT'),
// Australia, New Zealand, Singapore, Hong Kong, India, Malaysia.
'gst' => $this
->t('GST'),
// Japan.
'consumption_tax' => $this
->t('Consumption tax'),
];
}