public function OfficeHoursFormatterDefault::settingsSummary in Office Hours 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 OfficeHoursFormatterBase::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ OfficeHoursFormatterDefault.php, line 23
Class
- OfficeHoursFormatterDefault
- Plugin implementation of the formatter.
Namespace
Drupal\office_hours\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$summary[] = '(When using multiple slots per day, better use the table formatter.)';
return $summary;
}