public function TaxNumberDefaultFormatter::settingsSummary in Commerce Core 8.2
Returns a short summary for the current formatter settings.
If an empty result is returned, a UI can still be provided to display a settings form in case the formatter has configurable settings.
Return value
string[] A short summary of the formatter settings.
Overrides FormatterBase::settingsSummary
File
- modules/
tax/ src/ Plugin/ Field/ FieldFormatter/ TaxNumberDefaultFormatter.php, line 52
Class
- TaxNumberDefaultFormatter
- Plugin implementation of the 'commerce_tax_number_default' formatter.
Namespace
Drupal\commerce_tax\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
if ($this
->getSetting('show_verification')) {
$summary[] = $this
->t('Show verification details.');
}
else {
$summary[] = $this
->t('Do not show verification details.');
}
return $summary;
}