You are here

public function DurationRawValueFormatter::settingsSummary in Duration Field 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/Plugin/Field/FieldFormatter/DurationRawValueFormatter.php, line 24

Class

DurationRawValueFormatter
Provides a formatter for the duration field type.

Namespace

Drupal\duration_field\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = [];
  $summary[] = $this
    ->t('Displays the value in <a href=":link">duration format</a>', [
    ':link' => 'http://en.wikipedia.org/wiki/Iso8601#Durations',
  ]);
  return $summary;
}