public function FormatterBase::settingsSummary in Reference Table Formatter 8
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/
FormatterBase.php, line 129
Class
- FormatterBase
- A base field formatter class for rendering tables.
Namespace
Drupal\reference_table_formatterCode
public function settingsSummary() {
return [
'#markup' => $this
->t('Showing a table of rendered @view_mode entity fields.', [
'@view_mode' => $this
->getSetting('view_mode'),
]),
];
}