public function TestFieldMultipleFormatter::settingsSummary in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldMultipleFormatter.php \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldMultipleFormatter::settingsSummary()
- 9 core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldFormatter/TestFieldMultipleFormatter.php \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldMultipleFormatter::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
- core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Field/ FieldFormatter/ TestFieldMultipleFormatter.php, line 52
Class
- TestFieldMultipleFormatter
- Plugin implementation of the 'field_test_multiple' formatter.
Namespace
Drupal\field_test\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[] = t('@setting: @value', [
'@setting' => 'test_formatter_setting_multiple',
'@value' => $this
->getSetting('test_formatter_setting_multiple'),
]);
return $summary;
}