You are here

public function ComputedRawFormatter::settingsSummary in Computed 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/ComputedRawFormatter.php, line 50

Class

ComputedRawFormatter
Plugin implementation of the 'computed_raw' formatter.

Namespace

Drupal\computed_field\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = [];
  $summary[] = $this
    ->getSetting('sanitized') ? t('Sanitized') : t('Unsanitized');

  // Implement settings summary.
  return $summary;
}