You are here

public function HtmlFieldFormatterTimestamp::settingsSummary in HTML 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 TimestampFormatter::settingsSummary

File

src/Plugin/Field/FieldFormatter/HtmlFieldFormatterTimestamp.php, line 48

Class

HtmlFieldFormatterTimestamp
Plugin implementation of the 'timestamp' html field formatter.

Namespace

Drupal\html_formatter\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  $summary = array_merge($summary, $this
    ->getHtmlFormatterSettingsSummary($this->settings));
  return $summary;
}