public function Barcode::settingsSummary in Barcodes 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/Barcode.php \Drupal\barcodes\Plugin\Field\FieldFormatter\Barcode::settingsSummary()
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
- src/
Plugin/ Field/ FieldFormatter/ Barcode.php, line 138
Class
- Barcode
- Plugin implementation of the 'barcode' formatter.
Namespace
Drupal\barcodes\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary[] = $this
->t('Type: %type </br> Display format: %format', [
'%type' => $this
->getSetting('type'),
'%format' => $this
->getSetting('format'),
]);
return $summary;
}