public function DummyAjaxFormatter::settingsSummary in Drupal 8
Same name and namespace in other branches
- 9 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldFormatter/DummyAjaxFormatter.php \Drupal\image_module_test\Plugin\Field\FieldFormatter\DummyAjaxFormatter::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/ image/ tests/ modules/ image_module_test/ src/ Plugin/ Field/ FieldFormatter/ DummyAjaxFormatter.php, line 25
Class
- DummyAjaxFormatter
- Empty renderer for a dummy field with an AJAX handler.
Namespace
Drupal\image_module_test\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[] = t('Renders nothing');
return $summary;
}