protected function Custom::getDisplayLabel in Commerce Core 8.2
Gets the configured display label.
Return value
string The configured display label.
1 call to Custom::getDisplayLabel()
- Custom::buildZones in modules/
tax/ src/ Plugin/ Commerce/ TaxType/ Custom.php - Builds the tax zones.
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ Custom.php, line 357
Class
- Custom
- Provides the Custom tax type.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
protected function getDisplayLabel() {
$display_labels = $this
->getDisplayLabels();
$display_label_id = $this->configuration['display_label'];
if (isset($display_labels[$display_label_id])) {
$display_label = $display_labels[$display_label_id];
}
else {
$display_label = reset($display_labels);
}
return $display_label;
}